Git Product home page Git Product logo

Comments (5)

run2 avatar run2 commented on July 20, 2024

Thing is - when do you stop ? when you train on full data set.

from nolearn.

run2 avatar run2 commented on July 20, 2024

Also I am getting an error when I train on full data set.
/usr/lib/python2.7/dist-packages/numpy/core/_methods.py:55: RuntimeWarning: Mean of empty slice.
I only modified the train_test_split method in lasagne.py.

from nolearn.

msegala avatar msegala commented on July 20, 2024

I have tried this out and after it runs I get the error:

Epoch Train loss Valid loss Train / Val Valid acc Dur

/usr/lib64/python2.7/site-packages/numpy/core/methods.py:55: RuntimeWarning: Mean of empty slice.
warnings.warn("Mean of empty slice.", RuntimeWarning)
1 | 3.379510 | nan | nan | nan% | 267.6s
2 | 2.429299 | nan | nan | nan% | 267.7s
3 | 2.071116 | nan | nan | nan% | 267.4s
4 | 1.854738 | nan | nan | nan% | 267.3s
5 | 1.683506 | nan | nan | nan% | 267.1s
6 | 1.568097 | nan | nan | nan% | 267.1s
7 | 1.478959 | nan | nan | nan% | 267.1s
8 | 1.407118 | nan | nan | nan% | 267.0s
.......
Early stopping.
Best valid loss was inf at epoch 0.
Traceback (most recent call last):
File "run_analysis.py", line 121, in
func(*sys.argv[2:])
File "run_analysis.py", line 109, in fit
model.fit(X, y)
File "/home/segalam/TEST/src/nolearn/nolearn/lasagne.py", line 244, in fit
self.train_loop(X, y)
File "/home/segalam/TEST/src/nolearn/nolearn/lasagne.py", line 326, in train_loop
func(self, self.train_history
)
File "/home/segalam/TEST/src/lasagne/examples/helpers.py", line 277, in call
nn.load_weights_from(self.best_weights)
File "/home/segalam/TEST/src/nolearn/nolearn/lasagne.py", line 384, in load_weights_from
w.get_value() if hasattr(w, 'get_value') else w for w in source]
TypeError: 'NoneType' object is not iterable

from nolearn.

takacsg84 avatar takacsg84 commented on July 20, 2024

You should not use Early stopping if you have no evaluation set, since early stopping compares the costs on the evaluation set.

from nolearn.

msegala avatar msegala commented on July 20, 2024

indeed, that fixes the error. Thanks!

from nolearn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.