Giter Club home page Giter Club logo

lstm-pollution-prediction's People

Contributors

prajwaldp avatar

Watchers

 avatar  avatar

lstm-pollution-prediction's Issues

Error while computing yhat

yhat = model.predict(test_X)
test_X1 = test_X.reshape((test_X.shape[0], test_X.shape[2]))
inv_yhat = np.concatenate((yhat, test_X1[:, 1:]),axis=1)
inv_yhat1 = scaler.inverse_transform(inv_yhat)

When computing Yhat1 error comes as...
ValueError Traceback (most recent call last)
in ()
----> 1 inv_yhat1 = scaler.inverse_transform(inv_yhat)
2 print(inv_yhat1)

~\Anaconda3\lib\site-packages\sklearn\preprocessing\data.py in inverse_transform(self, X)
383 X = check_array(X, copy=self.copy, dtype=FLOAT_DTYPES)
384
--> 385 X -= self.min_
386 X /= self.scale_
387 return X
operands could not be broadcast together with shapes (89,12) (13,) (89,12)
My Train and test shape are as follows.
train_X.shape, train_y.shape, test_X.shape, test_y.shape
((120, 1, 12), (120,), (89, 1, 12), (89,))

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.