-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find pySetup/utils.py #149
Comments
Oh man, gotta love progress. The new version of npm installs all dependencies in a single flat folder, rather than nesting them as folders within each individual sub-dependency. Better overall, but it apparently screws things up when you have circular dependencies like here. I should have a fix out this morning. Thanks for reporting this! |
This ended up being a combination of two npm issues: the new file structure referenced above, and then npm installing not the latest versions of ensembler and data-formatter. The latest versions should have this handled, so I forced npm to install the latest versions of these pacakges, rather than hardcoding in version numbers. Let me know if you run into any other issues! I'm running through everything this morning to make sure it's all compatible with this fix. Thanks again for reporting this! I'd love any other feedback/experiences you have. |
Thanks for taking a look so quickly. Although just retried the install from scratch and rerunning the test. I see this in the npm debug again: 0 info it worked if it ends with ok |
I have the same error, and I just downloaded ( |
Thanks for the feedback! @eanie: it looks like for some reason your install is attempting to run the test suite. I haven't refactored the test suite to match my last big code refactor, so the test will fail. One of the benefits of being the sole author is that I know every nook and cranny of this project so well I can get away with that at the moment (though it's at the top of my list to fix up!). I'll go through today and comment out all the broken tests. In the meantime, you should still be able to run the program just fine! @DanielAndreasen: I'll look into that right now! Do you mind telling me which version of npm/node you're using, as well as the full error log? There are two places that message could be coming from. |
I have the same issue.
My npm version: |
Sure.
And the error message
|
Thanks for the heads up. I'll give it a whirl and let you know. Good work on this, I started on Fann, my current system is on encog, so I'm interested to see how this goes |
Alright, let me know if it works for you now, @DanielAndreasen! I haven't published to npm yet, but the latest commit should be there if you clone again. |
@eanie: I'd love any other feedback you have as you work with this! |
Okay, did a regular This time it went further, but here is the output of the run
|
Yay, progress! Did you run |
Same thing I had just now. So yes, progress
|
Okay, it is running now, and I'm pretty sure what the problem is. So, to resolve this, I simply installed scikit-learn myself.
I guess you have something similar @eanie. |
Just to conclude, I let it run (it takes quite some time, so I did it over night - not sure how long time it actually took), and it finished. I think it will be better with a |
Is there an update on this? I'm not using anaconda, and have re-pulled, and getting the following: { [Error: ImportError: cannot import name MLPClassifier] TypeError: Cannot read property 'longTrainScore' of undefined |
@eanie how did you install scikit-learn? Some of the problems for me were solved when I cloned their repository (see above). You might have to use |
Wow, total newbie error! I should have check the version of scikit-learn that was in the system location. It was way too old. Running my first test now. Thanks for all the help on this guys |
I think the test will take a long time! But you are welcome :) |
Thanks for all the help here everyone! Just to wrap a few things up: @DanielAndreasen: I will be redoing the install process soon based on your experience and recommendations. You've been very helpful, thanks! This is designed to take a while to run. It's searching hundreds of combinations of hyperparameters for a half dozen or so different algorithms, then using more machine learning at the end to make sense of all these results. If you want to make this run more quickly, bump down Another thing you can do to make it run more quickly is to save the results of data-formatter, unless you're introduced new feature engineering. Instructions for how to do this are included in https://github.com/ClimbsRocks/machineJS/blob/master/pySetup/testingFileNames.js Please keep the feedback coming! This is incredibly helpful, and it's fun for me to have some easy things to work on to give everyone a better experience using this library. Thanks! |
Whenever I try and run anything (machineJs or tests), I get the following:
sospan-2:machineJS justin$ npm run test:regression
regression problems
module.js:339
throw err;
^
Error: Cannot find module 'pySetup/utils.js'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/Users/justin/DeepLearning/machineJS/machineJS/node_modules/ensembler/node_modules/machinejs/processArgs.js:3:13)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
1) "before all" hook
0 passing (326ms)
1 failing
Command failed: node machineJS.js /Users/justin/DeepLearning/machineJS/machineJS/node_modules/data-for-tests/rossman/tinyTrain.csv --predict /Users/justin/DeepLearning/machineJS/machineJS/node_modules/data-for-tests/rossman/test.csv --join /Users/justin/DeepLearning/machineJS/machineJS/node_modules/data-for-tests/rossman/store.csv --dfOutputFolder /Users/justin/DeepLearning/machineJS/machineJS/test/regression/dfTestResults --predictionsFolder /Users/justin/DeepLearning/machineJS/machineJS/test/regression/rTestPredictions --ensemblerOutputFolder /Users/justin/DeepLearning/machineJS/machineJS/test/regression --bestClassifiersFolder /Users/justin/DeepLearning/machineJS/machineJS/test/regression/bestClassifiersTest
module.js:339
throw err;
^
I'm probably doing something stupid during the install, but I've been banging my head against a wall for the past 24 hours. Any ideas why it is not picking up the pySetup modules?
The text was updated successfully, but these errors were encountered: