SYMBOL INDEX (53 symbols across 8 files) FILE: backtester.py class backtester (line 23) | class backtester(simulator): method __init__ (line 25) | def __init__(self, stocks_list, model, capital, start_date, end_date, ... method backtest (line 50) | def backtest(self): method get_stock_data (line 98) | def get_stock_data(self, stock, back_to = 40): method scanner (line 110) | def scanner(self): method save_results (line 128) | def save_results(self): FILE: backtester_ape.py class backtester (line 23) | class backtester(simulator): method __init__ (line 25) | def __init__(self, stocks_list, model, capital, start_date, end_date, ... method backtest (line 50) | def backtest(self): method get_stock_data (line 99) | def get_stock_data(self, stock, back_to = 40): method scanner (line 111) | def scanner(self): method save_results (line 119) | def save_results(self): FILE: data_science/create_figures.py class create_figures (line 9) | class create_figures: method __init__ (line 11) | def __init__(self, model_name, threshold, hold_till): method create_history_df (line 45) | def create_history_df(self): method create_history_figure (line 83) | def create_history_figure(self): method gain_loss_plot (line 96) | def gain_loss_plot(self): method hold_hist (line 114) | def hold_hist(self): FILE: data_science/stats.py class create_stats (line 9) | class create_stats: method __init__ (line 11) | def __init__(self, model_name, threshold, hold_till): method calculate_stats (line 43) | def calculate_stats(self): method save_stats (line 54) | def save_stats(self): FILE: models/lr_inference.py function load_LR (line 15) | def load_LR(model_version): function load_scaler (line 22) | def load_scaler(model_version): function _threshold (line 29) | def _threshold(probs, threshold): function LR_v1_predict (line 38) | def LR_v1_predict(stock, start_date, end_date, threshold = 0.98): function LR_v1_sell (line 59) | def LR_v1_sell(stock, buy_date, buy_price, todays_date, sell_perc = 0.1,... FILE: models/lr_run_training.py class LR_training (line 41) | class LR_training: method __init__ (line 43) | def __init__(self, model_version, threshold = 0.98, start_date = None,... method fetch_data (line 76) | def fetch_data(self): method create_train_test (line 88) | def create_train_test(self): method fit_model (line 105) | def fit_model(self): method confusion_matrix (line 119) | def confusion_matrix(self): method _threshold (line 127) | def _threshold(self, predictions, threshold): method save_model (line 133) | def save_model(self): FILE: stock_utils/simulator.py class simulator (line 11) | class simulator: method __init__ (line 13) | def __init__(self, capital): method buy (line 23) | def buy(self, stock, buy_price, buy_date): method sell (line 32) | def sell(self, stock, sell_price, n_shares_sell, sell_date): method buy_percentage (line 49) | def buy_percentage(self, buy_price, buy_perc = 1): method trailing_stop_loss (line 57) | def trailing_stop_loss(self): method print_bag (line 63) | def print_bag(self): method create_summary (line 72) | def create_summary(self, print_results = False): method print_summary (line 88) | def print_summary(self): FILE: stock_utils/stock_utils.py function timestamp (line 23) | def timestamp(dt): function linear_regression (line 28) | def linear_regression(x, y): function n_day_regression (line 38) | def n_day_regression(n, df, idxs): function normalized_values (line 60) | def normalized_values(high, low, close): function get_stock_price (line 72) | def get_stock_price(stock, date): function get_data (line 98) | def get_data(sym, start_date = None, end_date = None, n = 10): function create_train_data (line 133) | def create_train_data(stock, start_date = None, end_date = None, n = 10): function create_test_data_lr (line 155) | def create_test_data_lr(stock, start_date = None, end_date = None, n = 10): function predict_trend (line 174) | def predict_trend(stock, _model_, start_date = None, end_date = None, n ...