question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

test modue now working on mac

See original GitHub issue

from keras.datasets import mnist from autokeras.image_supervised import ImageClassifier

(x_train, y_train), (x_test, y_test) = mnist.load_data() x_train = x_train.reshape(x_train.shape + (1,)) x_test = x_test.reshape(x_test.shape + (1,))

clf = ImageClassifier(verbose=True) clf.fit(x_train, y_train, time_limit=12 * 60 * 60) clf.final_fit(x_train, y_train, x_test, y_test, retrain=True) y = clf.evaluate(x_test, y_test) print(y)

Bug Description

Reproducing Steps

Steps to reproduce the behavior:

  • Step 1: …
  • Step 2: …

Expected Behavior

Setup Details

Include the details about the versions of:

  • OS type and version: mac high sierra 10.13.6(17G65)
  • Python: 3.6(anaconda)
  • autokeras:
  • scikit-learn: 0.19.1
  • numpy: 1.14.5
  • keras:2.2.2
  • scipy:1.1.0
  • tensorflow: 1.8.0
  • pytorch: not installed

Additional context

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
lucasbissarocommented, Aug 13, 2020

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.

0reactions
haifeng-jincommented, Feb 4, 2020

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__)
Read more comments on GitHub >

github_iconTop Results From Across the Web

"No such module" when using @testable in Xcode Unit tests
After spending couple of days on this issues finally I make it to work with my project. Problem was in Bridging Header -...
Read more >
Cannot enable Unit testing | Apple Developer Forums
I have been trying for a couple of days now to get started on building unitests for my Swift 3 IOS project in...
Read more >
How to Reset Your Mac's Bluetooth Module to Fix ...
Most problems can be fixed by unpairing and repairing the Bluetooth device, changing its batteries, rebooting your Mac, or performing an SMC ...
Read more >
pytest fails module not found, even tho tests are discovered ...
try to run tests, select pytest as test runner, use default setup.cfg as only setting; pick any test and run it, but it...
Read more >
Running PHPUnit tests
Execute PHPUnit tests from the command line.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found