Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmet1977 committed Apr 4, 2024
1 parent beae81e commit 2086fb1
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 40 deletions.
12 changes: 6 additions & 6 deletions luxpy/toolboxes/dispcal/display_characterization_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,9 @@ def __init__(self, training_data = None, single_channel_ramp_only_data = False,

# lazy imports:
success = is_importable('sklearn', pip_string = 'scikit-learn', try_pip_install = True)
from sklearn.preprocessing import StandardScaler
from sklearn.neural_network import MLPRegressor
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler # lazy import
from sklearn.neural_network import MLPRegressor # lazy import
from sklearn.pipeline import make_pipeline # lazy import

mlpregressor = MLPRegressor(hidden_layer_sizes = hidden_layer_sizes,
activation = activation, max_iter = max_iter,
Expand Down Expand Up @@ -660,9 +660,9 @@ def __init__(self, training_data = None, single_channel_ramp_only_data = False,

# lazy imports:
success = is_importable('sklearn', pip_string = 'scikit-learn', try_pip_install = True)
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import PolynomialFeatures
from sklearn.linear_model import LinearRegression
from sklearn.pipeline import Pipeline # lazy import
from sklearn.preprocessing import PolynomialFeatures # lazy import
from sklearn.linear_model import LinearRegression # lazy import

self.pipe_fw = Pipeline([('poly', PolynomialFeatures(degree = self.polyfeat_degree,
include_bias = self.polyfeat_include_bias,
Expand Down
1 change: 0 additions & 1 deletion luxpy/toolboxes/dispcal/virtualdisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from luxpy import colortf
from luxpy.utils import put_args_in_db

import matplotlib.pyplot as plt

from luxpy.toolboxes.dispcal.displaycalibration import TR_ggo, TRi_ggo, TR_gog, TRi_gog, TR_gogo, TRi_gogo, TR_sigmoid, TRi_sigmoid

Expand Down
66 changes: 33 additions & 33 deletions luxpy_basic_usage.ipynb

Large diffs are not rendered by default.

0 comments on commit 2086fb1

Please sign in to comment.