Coder Social home page Coder Social logo

rizki4106 / netrade Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 11.0 54 KB

AI Trading assistant with professional trader approach

Home Page: https://playground.heelmet.com/lab/netrade

License: Creative Commons Zero v1.0 Universal

Python 100.00%
artificial-intelligence cryptocurrency neural-network stock trading

netrade's People

Contributors

rizki4106 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

Watchers

 avatar  avatar  avatar  avatar  avatar

netrade's Issues

Missing attribute on torchvision

torchvision version 0.13.1

AttributeError: module 'torchvision.transforms' has no attribute 'ToTenser'

on

chart_transformer = transforms.Compose([
    transforms.Resize((224,224)),
    transforms.ToTensor()
])

Training my own model crashes my computer

after preparing my own images in the file structure I ran this section of code. It crashes my computer every time.

from netrade.data import DataPreprocessing

# initialize class
chart = "neTrade/chart/"
candle = "neTrade/candle/"

prep = DataPreprocessing(chart_path=chart, candle_path=candle)

# create dataframe
frame = prep.create_frame()

After running this about 30 seconds go by and then it soft-locks my computer. It could be that maybe I prepared too many images. I ran tree | wc -l to tell me how many total images I have. I have 30755 images split evenly between charts and candles.

Any help diagnosing this issue would be very helpful.

ISSUE

Traceback (most recent call last):
File "C:/Users/bill/Desktop/teemaki/ai netrade/ai.py", line 90, in
model, history = netrade.train(X_train=dataloader,X_test=dataloader , epochs=10)
File "C:\Users\bill\AppData\Local\Programs\Python\Python310\lib\site-packages\netrade\core.py", line 57, in train
accuracy_score = Accuracy().to(device)
TypeError: Accuracy.new() missing 1 required positional argument: 'task'

[Improvement] Documentation

So far while trying out this library I have had a great time. Since this library relies so heavily on the images generated; you should include a code snippet of how you generate your Charts and Candles. With this improvement, anyone could pick up the library and use yfinance for example to train their own model very easily

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.