Skip to main content
. 2026 May 27;18(11):1320. doi: 10.3390/polym18111320
Algorithm 2: Data Preprocessing for Polymer Property Prediction
Input: Raw dataset D_raw with features X and target Y
Output: Cleaned and normalized dataset D_clean
1. Load dataset D_raw
2. Handle missing values:
      a. For each feature in X:
            i. If missing values exist, replace with mean/median or remove row
3. Normalize features using Min-Max scaling:
      a. For each feature x in X:
            i. x_scaled= (xmin(x))/(maxxmin(x))
4. Split the dataset into:
      a. Training set (70%)
      b. Validation set (15%)
      c. Test set (15%)
5. Return D_clean={X_train,X_val,X_test,Y_train,Y_val,Y_test}