Skip to content

Commit

Permalink
Removed unecessary imports [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherSamWilson committed Sep 3, 2021
1 parent 9e7d307 commit 14ba9da
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion miceforest/ImputationSchema.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from numpy import concatenate
from .utils import _copy_and_remove, _setequal, _list_union, MeanMatchType, VarSchemType
from typing import Optional, Union, List, Dict, TYPE_CHECKING, Callable
from typing import Union, List, TYPE_CHECKING, Callable
from pandas import unique

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion miceforest/ImputedDataSet.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .ImputationSchema import _ImputationSchema
import numpy as np
from pandas import DataFrame
from .utils import ensure_rng, _list_union, _var_comparison, MeanMatchType, VarSchemType
from .utils import ensure_rng, _var_comparison, MeanMatchType, VarSchemType
from typing import Optional, Union, List, Dict, Callable


Expand Down
5 changes: 1 addition & 4 deletions miceforest/KernelDataSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@
)
from pandas import DataFrame
import numpy as np
from typing import Union, List, Dict, Any, TYPE_CHECKING, Callable
from typing import Union, Dict, Any, Callable
from .logger import Logger
from lightgbm import train, Dataset

# if TYPE_CHECKING:
# from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor

_TIMED_EVENTS = ["mice", "model_fit", "model_predict", "mean_match", "impute_new_data"]


Expand Down
2 changes: 0 additions & 2 deletions miceforest/MultipleImputedDataSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ def __init__(self, initial_dataset: ImputedDataSet):
)
self.data = getattr(initial_dataset, "data")
self.save_all_iterations = getattr(initial_dataset, "save_all_iterations")
# self.categorical_variables = getattr(initial_dataset, "categorical_variables")
# self._varfilter = getattr(initial_dataset, "_varfilter")
self._prep_multi_plot = getattr(initial_dataset, "_prep_multi_plot")
self._default_iteration = getattr(initial_dataset, "_default_iteration")
self.imputed_data_sets = {0: initial_dataset}
Expand Down
2 changes: 1 addition & 1 deletion miceforest/MultipleImputedKernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from .MultipleImputedDataSet import MultipleImputedDataSet
from .KernelDataSet import KernelDataSet
from pandas import DataFrame
from typing import Union, List, Dict, Callable
from typing import Union, List, Callable
from .utils import ensure_rng, MeanMatchType, VarSchemType
from .logger import Logger

Expand Down

0 comments on commit 14ba9da

Please sign in to comment.