Skip to content

Commit

Permalink
fixed some imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Annatu committed Feb 9, 2025
1 parent 391199b commit 00ffe88
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 70 deletions.
8 changes: 4 additions & 4 deletions smi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import config
import smi_utils
import smi_model
import train
from . import config
from . import smi_utils
from . import smi_model
from . import train

102 changes: 41 additions & 61 deletions smi/predict.ipynb

Large diffs are not rendered by default.

Binary file added smi/smi_best.h5
Binary file not shown.
2 changes: 1 addition & 1 deletion smi/smi_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Activation, LSTM, Dropout, Bidirectional, Embedding
from tensorflow.keras.optimizers import Adam
import config
from . import config

args = {'a1': 2, 'a3': 0, 'a4': 0, 'a5': 0, 'bs': 2, 'd1': 0.08607118576024131, 'd2': 0.4730059911045743, \
'd3': 0.186637772607526, 'd4': 0.27122468227787655, 'd5': 0.15564916131523265, \
Expand Down
2 changes: 1 addition & 1 deletion smi/smi_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
from scipy.stats import spearmanr
from sklearn.metrics import mean_absolute_error
import config
from . import config

def val_results(x_valx, y_valx, lc_name, modelx):

Expand Down
6 changes: 3 additions & 3 deletions smi/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
from scipy.stats import spearmanr
import json
import os
import smi_utils
import smi_model
import config
from . import smi_utils
from . import smi_model
from . import config
import datetime

def run():
Expand Down

0 comments on commit 00ffe88

Please sign in to comment.