bolkedebruin / autokeras_tabular Goto Github PK
View Code? Open in Web Editor NEWAutokeras Tabular extension
License: Other
Autokeras Tabular extension
License: Other
221 def init_lgbm(self, y):
--> 222 n_classes = len(set(y))
223 if n_classes == 2:
224 self.objective = 'binary'
TypeError: unhashable type: 'numpy.ndarray'
You should put n_classes = len(set(y.flat))
Hi, users are unable to run autokeras-tabular 0.3.7.1 due to dependency conflict with numpy package. As shown in the following full dependency graph of autokeras-tabular, it directly requires numpy> 1.16.1,while autokeras 0.3.7 requires _numpy==1.16.1。
According to pip’s “first found wins” installation strategy, numpy 1.16.4 is the actually installed version. However, numpy 1.16.4 does not satisfy numpy==1.16.1.
----------------------------------------------------------------------------------------
Building autokeras-tabular-0.3.7.1
----------------------------------------------------------------------------------------
autokeras-tabular<version range:>
| +-autokeras<version range:>=0.3.7>
| | +-imageio<version range:==2.5.0>
| | +-numpy<version range:==1.16.1>
| | +-requests<version range:==2.21.0>
| | +-scikit-image<version range:==0.14.2>
| | +-scikit-learn<version range:==0.20.2>
| | +-scipy<version range:==1.2.0>
| | +-tensorflow<version range:==1.13.1>
| | +-torch<version range:==1.0.1.post2>
| | +-torchvision<version range:==0.2.1>
| | +-tqdm<version range:==4.31.0>
| +-lightgbm<version range:>=2.2.3>
| +-numpy<version range:>=1.16.1>
----------------------------------------------------------------------------------------
Change your direct dependency numpy >=1.16.1 to numpy ==1.16.1.
Thanks for your help.
Best,
Neolith
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.