Giter VIP home page Giter VIP logo

Comments (4)

QSCTech-Sange avatar QSCTech-Sange commented on August 25, 2024

I have this problem too but I solved it.
You can view my pull request.

from data-analysis.

cnubathula avatar cnubathula commented on August 25, 2024

Thanks for update. as per pull request i have replace code but no luck iam getting below error.

Python 3.7.1 (default, Oct 28 2018, 08:39:03) [MSC v.1912 64 bit (AMD64)] :: Anaconda custom (64-bit) on win32
Type "help", "copyright", "credits" or "license" for more information.

from stocker import *
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\687488\stocker\stocker.py", line 525
test['correct'] = (np.sign(test['pred_diff'][1:]) == np.sign(test['real_diff'][1:])) * 1
^
TabError: inconsistent use of tabs and spaces in indentation

from data-analysis.

QSCTech-Sange avatar QSCTech-Sange commented on August 25, 2024

inconsistent use of tabs and spaces in indentation

That is a little wired. Are you using the latest pull request?
It works fine on my computer and I can't see anything wrong with tabs or spaces.
Maybe you can try add [1:] in the right place manually?

from data-analysis.

QSCTech-Sange avatar QSCTech-Sange commented on August 25, 2024

I am pretty sure that

RuntimeWarning: invalid value encountered in sign

This warning is caused by test['correct'] = (np.sign(test['pred_diff']) == np.sign(test['real_diff'])) * 1 ^ And by adding [1:] begind test[''] will solve this.

from data-analysis.

Related Issues (20)

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.