Skip to content

Commit

Permalink
Changed a parameter for better imputation results.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherSamWilson committed Jul 26, 2024
1 parent 892d115 commit b86cfb6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_imputed_accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import pandas as pd
import numpy as np
import miceforest as mf
from miceforest.utils import logistic_function
from sklearn.metrics import roc_auc_score


Expand Down Expand Up @@ -57,7 +56,6 @@ def get_imp_mse(kernel, variables, iris):

def get_mean_pred_mse(kernel: mf.ImputationKernel, variables, iris):
mses = {}
iterations = kernel.iteration_count()
for col in variables:
ind = kernel.na_where[col]
orig = iris.loc[ind, col]
Expand Down Expand Up @@ -169,7 +167,7 @@ def test_custom_params():
verbose=False,
boosting="random_forest",
num_iterations=500,
min_data_in_leaf=15,
min_data_in_leaf=2,
)
kernel_1.complete_data(0, inplace=True)

Expand Down

0 comments on commit b86cfb6

Please sign in to comment.