You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/benchmark.md
+16-9Lines changed: 16 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,8 +321,11 @@ plt.show()
321
321
In this section, we present an MLP model of data imputation using Keras, which can be installed using a "pip install tensorflow".
322
322
323
323
```python
324
-
from qolmat.imputations import imputers_keras
325
-
import tensorflow as tf
324
+
from qolmat.imputations import imputers_pytorch
325
+
try:
326
+
import torch.nn as nn
327
+
exceptModuleNotFoundError:
328
+
raise PyTorchExtraNotInstalled
326
329
```
327
330
328
331
For the MLP model, we work on a dataset that corresponds to weather data with missing values. We add missing MCAR values on the features "TEMP", "PRES" and other features with NaN values. The goal is impute the missing values for the features "TEMP" and "PRES" by a Deep Learning method. We add features to take into account the seasonality of the data set and a feature for the station name
@@ -340,13 +343,17 @@ For the example, we use a simple MLP model with 3 layers of neurons.
340
343
Then we train the model without taking a group on the stations
0 commit comments