Skip to content
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

some data files are missing? #1

Closed
EmbraceLife opened this issue Jun 19, 2017 · 2 comments
Closed

some data files are missing? #1

EmbraceLife opened this issue Jun 19, 2017 · 2 comments

Comments

@EmbraceLife
Copy link

when running it, there is an error saying can't find the file names with ultimate_feature, ultimate_label and etc.

Here is the error:

  File "/Users/Natsume/miniconda2/envs/tf-experiment/lib/python3.6/site-packages/numpy/lib/npyio.py", line 860, in loadtxt
    fh = iter(open(fname))
FileNotFoundError: [Errno 2] No such file or directory: './ultimate_feature.30'
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program

The source code involved:

  23     def read_ultimate(path, input_shape):
  24  ->     ultimate_features = numpy.loadtxt(path + "ultimate_feature." + str(input_sha
  25         ultimate_features = numpy.reshape(ultimate_features, [-1, input_shape[0], in
  26         ultimate_labels = numpy.loadtxt(path + "ultimate_label." + str(input_shape[0
  27         # ultimate_labels = numpy.reshape(ultimate_labels, [-1, 1])
  28         train_set = DataSet(ultimate_features, ultimate_labels)
  29         test_features = numpy.loadtxt(path + "ultimate_feature.test." + str(input_sh
  30         test_features = numpy.reshape(test_features, [-1, input_shape[0], input_shap
  31         test_labels = numpy.loadtxt(path + "ultimate_label.test." + str(input_shape[
  32         # test_labels = numpy.reshape(test_labels, [-1, 1])
  33         test_set = DataSet(test_features, test_labels)
  34         return train_set, test_set

by the way, your code is compatible with keras 2, right?

@markovyao
Copy link

use feature.py to generate the ultimate_feature.30

@happynoom
Copy link
Owner

Sorry,I see the issue late. Yes,feature.py is to generate features, so it is not generated per train. And it's campatible with keras 2, just add two functions to keras source code as readme described. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants