Skip to content

Instantly share code, notes, and snippets.

View GrovesD2's full-sized avatar

Danny Groves GrovesD2

View GitHub Profile
'''
Simple Neural Network attempt for price prediction - it does not do a good job
at all and therefore SHOULD NOT BE USED FOR ANY REAL TRADING/INVESTING
'''
import numba as nb
import numpy as np
import pandas as pd
import yfinance as yf
'''
This code is a demonstration to show how you can accidentally slip in future
results to a time-series predicting neural network.
DO NOT USE THIS CODE FOR MAKING PREDICTIONS, IT'S FAULTY ON PURPOSE.
'''
import numba as nb
import numpy as np
import pandas as pd
import time
import random
import numba as nb
import numpy as np
import pandas as pd
import datetime as dt
from tqdm import tqdm
from copy import deepcopy
# For type hinting
import numpy as np
import matplotlib.pyplot as plt
from scipy import sparse
from typing import Tuple
from copy import deepcopy
from scipy.ndimage import gaussian_filter
IMAGE = 'PATH_TO_JPG_IMAGE' # Include JPG image here!
import numpy as np
import pandas as pd
import yfinance as yf
from typing import Tuple
from copy import deepcopy
import plotly.io as pio
import plotly.graph_objects as go
pio.renderers.default='browser'
import time
import random
import numba as nb
import numpy as np
import pandas as pd
from copy import deepcopy
# For type hinting
from typing import Tuple