Skip to content

Commit

Permalink
updates to use python 3.9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ya54 committed Dec 8, 2022
1 parent e6943be commit 09c5973
Show file tree
Hide file tree
Showing 29 changed files with 7,081 additions and 6,681 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.ipynb_checkpoints
CMEpredict/__pycache__
3 changes: 2 additions & 1 deletion CMEpredict/CMEpredict.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
sys.stderr = open(os.devnull, 'w')
from keras.models import *
from keras.layers import *
from tensorflow.keras import regularizers
sys.stderr = stderr

import numpy as np
Expand Down Expand Up @@ -280,7 +281,7 @@ def get_n_features_thresh(type, time_window):
type=type,
time_window=time_window)

class_weights = class_weight.compute_class_weight('balanced', np.unique(y_train), y_train)
class_weights = class_weight.compute_class_weight('balanced', classes=np.unique(y_train), y=y_train)
class_weight_ = {0: class_weights[0], 1: class_weights[1]}
print('done loading training data...')

Expand Down
2 changes: 1 addition & 1 deletion CMEpredict/ReadMe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ The fourth argument "0" denotes that the program will load and use the pre-train

The output obtained by executing the above command is stored in the file named gru-x-output.csv or lstm-x-output.csv in the zip. This output file is the same as the normalized_testing_x file except that it has one additional column (the first column) titled "Predicted Label," which contains labels predicted by our program. The value "padding" is removed from the output file.

Our program is run on Python 3.6.8, Keras 2.2.4, and TensorFlow 1.12.0.
Our program is run on Python 3.9.7, Keras 2.2.4, and TensorFlow 2.8.0.

Binary file modified CMEpredict/gru-12-model.h5
Binary file not shown.
584 changes: 292 additions & 292 deletions CMEpredict/gru-12-output.csv

Large diffs are not rendered by default.

Binary file modified CMEpredict/gru-24-model.h5
Binary file not shown.
1,082 changes: 541 additions & 541 deletions CMEpredict/gru-24-output.csv

Large diffs are not rendered by default.

Binary file modified CMEpredict/gru-36-model.h5
Binary file not shown.
1,396 changes: 698 additions & 698 deletions CMEpredict/gru-36-output.csv

Large diffs are not rendered by default.

Binary file modified CMEpredict/gru-48-model.h5
Binary file not shown.
1,624 changes: 812 additions & 812 deletions CMEpredict/gru-48-output.csv

Large diffs are not rendered by default.

Binary file modified CMEpredict/gru-60-model.h5
Binary file not shown.
1,858 changes: 929 additions & 929 deletions CMEpredict/gru-60-output.csv

Large diffs are not rendered by default.

Binary file modified CMEpredict/lstm-12-model.h5
Binary file not shown.
584 changes: 292 additions & 292 deletions CMEpredict/lstm-12-output.csv

Large diffs are not rendered by default.

Binary file modified CMEpredict/lstm-24-model.h5
Binary file not shown.
1,082 changes: 541 additions & 541 deletions CMEpredict/lstm-24-output.csv

Large diffs are not rendered by default.

Binary file modified CMEpredict/lstm-36-model.h5
Binary file not shown.
1,396 changes: 698 additions & 698 deletions CMEpredict/lstm-36-output.csv

Large diffs are not rendered by default.

Binary file modified CMEpredict/lstm-48-model.h5
Binary file not shown.
1,624 changes: 812 additions & 812 deletions CMEpredict/lstm-48-output.csv

Large diffs are not rendered by default.

Binary file modified CMEpredict/lstm-60-model.h5
Binary file not shown.
1,858 changes: 929 additions & 929 deletions CMEpredict/lstm-60-output.csv

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ For the latest updates of CMEPredict refer to [https://github.com/deepsuncode/RN

## Installation on local machine

Requires `Python==3.6.x` (was tested on 3.6.8)
Requires `Python==3.9.x` (was tested on 3.9.7)

Run `pip install -r requirements.txt` (recommended), or manually install the following packages and specified versions:

| Library | Version | Description |
|--------------|---------|--------------------------------|
| pandas | 1.1.5 | Data analysis |
| scikit-learn | 0.24.2 | Neural network libraries |
| matplotlib | 3.3.4 | Plotting and graphs |
| h5py | 2.10.0 | Data storage and management |
| tensorflow | 1.12.0 | Neural network libraries |
| numpy | 1.21.6 | Data processing |
| pandas | 1.4.4 | Data analysis |
| scikit-learn | 1.0.1 | Neural network libraries |
| matplotlib | 3.5.2 | Plotting and graphs |
| tensorflow-gpu | 2.8.0 | Neural network libraries |
| keras | 2.2.4 | Artificial neural networks API |


Expand Down
Loading

0 comments on commit 09c5973

Please sign in to comment.