Comments (12)
See nl.trans.Competitive.__doc__:
:Returns:
y : ndarray
may take the following values: 0, 1
'1' if is a MINIMAL element of x, else '0'
:Example:
>>> f = Competitive()
>>> f([-5, -0.1, 0, 0.1, 100])
array([ 1., 0., 0., 0., 0.])
Original comment by [email protected]
on 6 Aug 2011 at 7:36
from neurolab.
Original comment by [email protected]
on 7 Aug 2011 at 10:35
- Changed state: Invalid
from neurolab.
The MATLAB compet function returns '1' in the position of the maximal
element of x.
Regards,
Chris de Villiers
Consulting Electronics Engineer
Trusc Technologies (Pty) Ltd.
PO Box 902
Vredendal
8160
Tel: +27 (0) 27 213 3878
Fax: +27 (0) 86 695 5578
Mobile: +27 (0) 82 895 4699
Original comment by [email protected]
on 8 Aug 2011 at 6:23
from neurolab.
Thanks for you interested of neurolab
Original comment by [email protected]
on 8 Aug 2011 at 12:40
from neurolab.
I find neurolab very useful. It was a trivial matter to change the code of the
Competitive function so that it now gives the same output as the MATLAB compet
function.
Original comment by [email protected]
on 10 Aug 2011 at 6:05
from neurolab.
Hello Zuev
Please could you give me some idea of how to use neurolab to duplicate
the pattern recognition demo in MATLAB, where the network is created as
net = newff(alphabet,targets,10,{'logsig','logsig'}), where alphabet is
a 35 x 26 array, and targets is a 26 x 26 array. How would you set this
up in neurolab?
Regards,
Chris de Villiers
Electronics R&D Engineer
Trusc Technologies (Pty) Ltd.
PO Box 902
Vredendal
8160
Tel: +27 (0) 27 213 3878
Fax: +27 (0) 86 695 5578
Mobile: +27 (0) 82 895 4699
Original comment by [email protected]
on 23 Aug 2011 at 12:09
from neurolab.
Hello Chris
I used older version NNT (4.0.2 (R13)), may now API has changed.
If I understand you correctly, you need something it:
import neurolab as nl
import numpy as np
# example patterns: 26 letters with 35 points on each letter
i = np.random.rand(26, 35)
t = np.random.rand(26, 26)
# create network wits 2 layers
# with 35 inputs (5*7) and 26 outputs
net = nl.net.newff([[0,1]]*35, [10, 26], [nl.trans.LogSig()]*2)
net.trainf = nl.train.train_bfgs
net.train(i, t, show=10, epochs=100)
Original comment by [email protected]
on 23 Aug 2011 at 2:23
from neurolab.
Thanks for the feedback, I'll try it.
Original comment by [email protected]
on 24 Aug 2011 at 9:12
from neurolab.
Hello Zuev
I got it to work, but I can't simulate with only one letter. It would
appear that I need to simulate with the entire alphabet. I get an error
when I try to input one letter (35x1 vector). I expect output to be 26x1
vector with a 1 in the letter position and 0 everywhere else. Am I doing
something wrong? This is possible in MATLAB.
Original comment by [email protected]
on 24 Aug 2011 at 12:59
from neurolab.
letter = np.empty(35)
print net.sim([letter])
# or
print net.step(letter)
Original comment by [email protected]
on 24 Aug 2011 at 1:35
from neurolab.
Thanks. I didn't realize I had to give sim([x]) instead of sim(x).
Any idea why I get an exp overflow warning with large epoch (e.g. epoch
= 200)?
Original comment by [email protected]
on 25 Aug 2011 at 6:09
from neurolab.
I dont know. For help you I need a running code.
I create group: http://groups.google.com/group/py-neurolab
Please ask you questions there
Original comment by [email protected]
on 25 Aug 2011 at 5:25
from neurolab.
Related Issues (20)
- Failing to add Levenberg-Marquardt-training HOT 5
- Problem when using a modified network property HOT 1
- feedforward network not learning HOT 12
- PureLin in outputl layer does not work HOT 2
- Setup issue HOT 3
- strange result HOT 13
- Cannot install successfully for Python 3.2 HOT 5
- Learning Rate is not present HOT 2
- Multiprocessing can not pickle unbound function HOT 6
- cannot save nn HOT 2
- output norm and different resutls HOT 1
- Citing neurolab HOT 3
- Parameters Ignored in Training Function Construction HOT 2
- Training Fails for Non-Default Activation Functions HOT 1
- Linear Activation Leads to NaN minmax HOT 2
- Support for weight decay (regularization parameter) HOT 2
- Missing newelm example in doc HOT 3
- fmin_bfgs() got an unexpected keyword argument 'lr', train func does not take lr as parameter HOT 2
- Added regularization and cross-entropy error to Neurolab HOT 5
- 0.3.5 version not available in pypi HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neurolab.