Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Excercise: Manual adjusting the parameters

from a MCP
Daniel Alejandro González Bandala
275203, Machine Learning Course.
February 8th, 2017

Abstract. Find the parameters of the MCP given the inputs. The
parameters to adjust are the weights and the threshold.

1 Introduction
By using trial and error, manually find correct values for the parameters from
the following set of data (Figure 1).

2 Procedure
The goal is to find the proper values for the weights of the inputs and the
threshold in order to obtain the correct responses (f) from the MCP model
(Figure 2).
The sets are shown in the Figure 3.

Figure 1: Inputs and functions to map

1
Figure 2: MacCulloch and Pitts model

Figure 3: Data sets plot

2
3 Results
For the first three cases there is a possible answer, shown below in Figure ,
but the last case has a non linear solution, making impossible for the MCP
model to provide a solution, since this model has only the ability to solve
linear classification problems.

4 Conclusions
The properties and assumptions of algorithms and models are crucial if we
are to find optimal solutions. The situation found in the last classification
problem can be solved with a multilayer perceptron instead of a simple per-
ceptron.

3
measure
x1 W1 x2 W2 x3 W3 SUM(x*W) Desigualdad
t f hat f1
1 0 -0.5 0 -0.6 0 0.09 0 > -0.5 1 1
2 0 -0.5 0 -0.6 1 0.09 0.09 > -0.5 1 1
3 0 -0.5 1 -0.6 0 0.09 -0.6 < -0.5 0 0
4 0 -0.5 1 -0.6 1 0.09 -0.51 < -0.5 0 0
5 1 -0.5 0 -0.6 0 0.09 -0.51 < -0.5 0 0
6 1 -0.5 0 -0.6 1 0.09 -0.42 > -0.5 1 1
7 1 -0.5 1 -0.6 0 0.09 -1.11 < -0.5 0 0
8 1 -0.5 1 -0.6 1 0.09 -1.02 < -0.5 0 0

Measure
x1 W1 x2 W2 x3 W3 SUM(x*W) Desigualdad
t f hat f2
1 0 -0.2 0 -0.2 0 -0.2 0 -0.1 > 1 1
2 0 -0.2 0 -0.2 1 -0.2 -0.2 -0.1 < 0 0
3 0 -0.2 1 -0.2 0 -0.2 -0.2 -0.1 > 1 1
4 0 -0.2 1 -0.2 1 -0.2 -0.4 -0.1 > 1 1
5 1 -0.2 0 -0.2 0 -0.2 -0.2 -0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