Explorar el Código

Added instals commands on readme

Doriand
Doriand Petit hace 4 años
padre
commit
966d7a56a8

+ 4
- 0
code/wilshire_5000/README.md Ver fichero

# wilshire_5000 # wilshire_5000


Classical Installations Required : numpy, pandas, tensorflow and matplotlib (and warnings)

Other Installation : statsmodels for ARIMA predictions (pip install statsmodels)

## Données ## Données


[Données](https://fred.stlouisfed.org/series/WILL5000INDFC) [Données](https://fred.stlouisfed.org/series/WILL5000INDFC)

BIN
code/wilshire_5000/dataset.npy Ver fichero


+ 0
- 11
code/wilshire_5000/grab_data.py Ver fichero

import pandas
import numpy as np

csv = pandas.read_csv("WILL5000INDFC.csv")
extraction = csv["WILL5000INDFC"].tolist()
for i in range(len(extraction)) :
if extraction[i] == "." :
extraction[i] = extraction[i-1]
extraction = np.array(extraction).astype(float)
print(extraction)
np.save("dataset.npy", extraction)

+ 0
- 6639
code/wilshire_5000/new_data.txt
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 0
- 1
code/wilshire_5000/nn.py Ver fichero

import pandas as pd import pandas as pd
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import wilshire import wilshire
import tensorflow_addons as tfa
from statsmodels.tsa.arima.model import ARIMA from statsmodels.tsa.arima.model import ARIMA





+ 1
- 0
code/wilshire_5000/notebook_wilshire.ipynb Ver fichero

], ],
"source": [ "source": [
"## Plot all a with already saved models (the name of the folders should not be changed)\n", "## Plot all a with already saved models (the name of the folders should not be changed)\n",
"## the name of the models' folders should be \"Snake{a_value}a\"\n",
"nn.plot_all_a(a=[\"1\",\"10\",\"20\",\"30\",\"50\",\"100\"])" "nn.plot_all_a(a=[\"1\",\"10\",\"20\",\"30\",\"50\",\"100\"])"
] ]
}, },

BIN
code/wilshire_5000/resnet18snake.png Ver fichero


+ 0
- 8
code/wilshire_5000/results.txt Ver fichero

100 epochs adam mse 2_runs 4_batch_size

[[0.5401026606559753, 0.0], [0.5401026606559753, 0.0], [0.18415303528308868, 0.009042516350746155],
[0.1577790528535843, 0.0004640519618988037], [0.007161237532272935, 0.0007062254007905722]]


[[0.0681375540792942, 0.11859790716458475], [0.0113261666148901, 0.002322317928070604], [nan, nan],
[0.008264125511050224, 0.0013573866481290681], [0.008175850845873356, 0.001503577316727166]]

Cargando…
Cancelar
Guardar