Code Monkey home page Code Monkey logo

lstm-math's People

Contributors

cpury avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lstm-math's Issues

TypeError: 'float' object cannot be interpreted as an index

followed the readmy steps and got

Using TensorFlow backend.


Layer (type) Output Shape Param #

lstm_1 (LSTM) (None, 256) 276480


dropout_1 (Dropout) (None, 256) 0


repeat_vector_1 (RepeatVecto (None, 7, 256) 0


lstm_2 (LSTM) (None, 7, 256) 525312


dropout_2 (Dropout) (None, 7, 256) 0


time_distributed_1 (TimeDist (None, 7, 13) 3341


activation_1 (Activation) (None, 7, 13) 0

Total params: 805,133
Trainable params: 805,133
Non-trainable params: 0


Traceback (most recent call last):
File "main.py", line 331, in
main()
File "main.py", line 287, in main
x_test, y_test, x_train, y_train = build_dataset()
File "main.py", line 142, in build_dataset
(n_test, MAX_EQUATION_LENGTH, N_FEATURES), dtype=np.bool
TypeError: 'float' object cannot be interpreted as an index

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.