Comments (7)
I had this problem and found out that my file was named autokeras.py, so when I imported the lib, I was actually importing my own file. Changing the file name solved the problem.
from autokeras.
Hey,
I get pretty much the same issue with the first example on MacOSX 10.12
I installed autokeras via a pip3 install autokeras
and my python version is a fresh 3.6 from python.org
When I try to run the very first example I get this error:
Traceback (most recent call last):
File "autokeras.py", line 1, in <module>
import autokeras as ak
File "/Users/julien/travail/python/autokeras.py", line 3, in <module>
clf = ak.ImageClassifier()
AttributeError: module 'autokeras' has no attribute 'ImageClassifier'
from autokeras.
@jrenouard
Thank you for your report but we really cannot reproduce the error.
Would you use "python3 -m pip install autokeras" to install, and use "python3" to run the mnist.py?
So that it can make sure the package is installed for the same interpreter you use to run the script.
Thanks.
from autokeras.
I followed your steps but still getting the same eroor
from autokeras.
I'm getting the same error AttributeError: module 'autokeras' has no attribute 'ImageClassifier'
on Ubuntu 18.04.
On Windows 10 it works just fine.
I tried pip3 install autokeras
and python3 -m pip install autokeras
.
from autokeras.
But in Mac it is still showing error
from autokeras.
hi @albert-92 @abhisingh007224 , I really cannot reproduce this error. Maybe it is related to the conda environment?
Would you please run the following script with the same python interpreter and paste the output here?
Thank you for your help!
import sys
print(sys.version)
import pkg_resources
pkg_resources.get_distribution("autokeras").version
import autokeras
print(autokeras.__dict__)
from autokeras.
Related Issues (20)
- using autokeras to build a sequence prediction model
- Can the models not be saved during the trial?
- problem: Higher number of epochs lead to worse results? HOT 1
- Bug: Error "I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_15' with dtype double and shape"
- Feature: Any GPU optimization features?
- Bug: KeyError: 'text_block_1/max_tokens' HOT 5
- Feature: Model Agnostic Explanability - Permutation Importance and Counterfactual
- Bug: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 205. in Chinese path, not in English path
- Bug: TypeError: can only concatenate str (not "NoneType") to st HOT 1
- Bug: Unable to predict data using the model trained (Node: 'model/multi_category_encoding/string_lookup_22/None_Lookup/LookupTableFindV2' Table not initialized. [[{{node model/multi_category_encoding/string_lookup_22/None_Lookup/LookupTableFindV2}}]] [Op:__inference_predict_function_10129638] )
- Bug: HOT 4
- AttributeError: module 'numpy' has no attribute 'object' when using autokeras with structured data HOT 4
- Autokers textinput text classifier does not work.
- ModuleNotFoundError: No module named 'tensorflow.keras.layers.experimental'Bug: HOT 4
- Bug: import autokeras as ak --> ModuleNotFoundError: No module named 'tensorflow.keras.layers.experimental' HOT 7
- Bug: FatalTypeError: Expected the model-building function, or HyperModel.build() to return a valid Keras Model instance
- Bug: StructuredDataClassifier and StructuredDataRegressor gone? HOT 5
- Bug: Autokeras/TF fails with CUDA_ERROR_ILLEGAL_ADDRESS/CUDA_ERROR_INVALID_HANDLE when max_trials is not 1
- Bug: "Best val_accuracy So Far" is mistaken for "Best val_loss So Far"
- Feature: 希望AutoKeras可以基于目前最新的Keras3,支持Keras3的新特性!
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 autokeras.