RAYAuser commited on
Commit
6770fcb
·
verified ·
1 Parent(s): d2c7992

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -0
README.md CHANGED
@@ -18,12 +18,15 @@ To use the models, please follow the steps below.
18
  Prerequisites
19
  The following Python libraries are required to load and run the models:
20
 
 
21
  pip install torch scikit-learn joblib huggingface-hub
 
22
 
23
 
24
  Loading the Models
25
  The following script allows you to download the model files from this repository and load them into memory for later use.
26
 
 
27
  import torch
28
  import torch.nn as nn
29
  from joblib import load
@@ -82,6 +85,7 @@ rf_prediction = rf_model_loaded.predict(sample_image_flat)
82
 
83
  print(f"Prediction by the Neural Network: {ffnn_prediction.item()}")
84
  print(f"Prediction by the Random Forest: {rf_prediction[0]}")
 
85
 
86
  Notes
87
  The SimpleFFNN class must be defined to allow the PyTorch model to be loaded.
 
18
  Prerequisites
19
  The following Python libraries are required to load and run the models:
20
 
21
+ ```
22
  pip install torch scikit-learn joblib huggingface-hub
23
+ ```
24
 
25
 
26
  Loading the Models
27
  The following script allows you to download the model files from this repository and load them into memory for later use.
28
 
29
+ ```
30
  import torch
31
  import torch.nn as nn
32
  from joblib import load
 
85
 
86
  print(f"Prediction by the Neural Network: {ffnn_prediction.item()}")
87
  print(f"Prediction by the Random Forest: {rf_prediction[0]}")
88
+ ```
89
 
90
  Notes
91
  The SimpleFFNN class must be defined to allow the PyTorch model to be loaded.