Update README.md
Browse files
README.md
CHANGED
|
@@ -116,13 +116,12 @@ from joblib
|
|
| 116 |
import pandas as pd
|
| 117 |
|
| 118 |
Tc_predictor = load('Magnet_Tc_predictor.joblib') # trained model
|
| 119 |
-
config = json.load(open('config.json')) # config file
|
| 120 |
-
features = config['features'] # feature extraction
|
| 121 |
|
| 122 |
#data = pd.read_excel("data.xlsx") # read test file with new compositions
|
| 123 |
-
data = data[features]
|
|
|
|
| 124 |
|
| 125 |
-
Predicted_value = Tc_predictor.predict(
|
| 126 |
print("Predicted Tc value is: {0:.2f}'.format(predictions)")
|
| 127 |
|
| 128 |
```
|
|
|
|
| 116 |
import pandas as pd
|
| 117 |
|
| 118 |
Tc_predictor = load('Magnet_Tc_predictor.joblib') # trained model
|
|
|
|
|
|
|
| 119 |
|
| 120 |
#data = pd.read_excel("data.xlsx") # read test file with new compositions
|
| 121 |
+
data = data[features].values
|
| 122 |
+
test_composition = array[:]
|
| 123 |
|
| 124 |
+
Predicted_value = Tc_predictor.predict(test_composition) # predict Tc values
|
| 125 |
print("Predicted Tc value is: {0:.2f}'.format(predictions)")
|
| 126 |
|
| 127 |
```
|