GithubHelp home page GithubHelp logo

datacamp_tutorials's Introduction

Hi there! Amazing fellow human being ๐Ÿ‘‹

I am a data scientist and I love getting my hands ๐Ÿคš and feet ๐Ÿฆถ wet in problem infested โ˜  murky waters ๐Ÿšค of data, to unearth invaluable information and actionable insights ๐Ÿ’Ž.

What do I love?

  • ๐Ÿ Python
  • ๐Ÿค– Machine Learning, Deep Learning, Artificial Intelligence
  • ๐Ÿงฎ TensorFlow

Some of my publications

datacamp_tutorials's People

Contributors

thushv89 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

datacamp_tutorials's Issues

MinMaxScaler not working in this example

Everything runs normally up until the MinMaxScaler is called in the for loop.

high_prices = df.loc[:,'High'].as_matrix()
low_prices = df.loc[:,'Low'].as_matrix()
mid_prices = (high_prices+low_prices)/2.0

print(mid_prices)
[20.25 19.865 20.34 ... 27.97 27.62 27.3425]
main:1: FutureWarning: Method .as_matrix will be removed in a future version. Use .values instead.
main:2: FutureWarning: Method .as_matrix will be removed in a future version. Use .values instead.

smoothing_window_size = 2500
for di in range(0,10000,smoothing_window_size):
scaler.fit(train_data[di:di+smoothing_window_size,:])
train_data[di:di+smoothing_window_size,:] = scaler.transform(train_data[di:di+smoothing_window_size,:])

You normalize the last bit of remaining data

scaler.fit(train_data[di+smoothing_window_size:,:])
train_data[di+smoothing_window_size:,:] = scaler.transform(train_data[di+smoothing_window_size:,:])
Traceback (most recent call last):

File "", line 3, in
scaler.fit(train_data[di:di+smoothing_window_size,:])

File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\preprocessing\data.py", line 325, in fit
return self.partial_fit(X, y)

File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\preprocessing\data.py", line 353, in partial_fit
force_all_finite="allow-nan")

File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\validation.py", line 550, in check_array
context))

ValueError: Found array with 0 sample(s) (shape=(0, 1)) while a minimum of 1 is required by MinMaxScaler.

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.