# 13385μ μ€λͺ λλλ‘ λͺ¨λ μμ±μ΄ λ¬Έμνλμλμ§ νμΈν΄μΌν©λλ€.
μ΄ μμ μνλ €λ©΄ νΉμ νμ λͺ¨λμ μ ννκ³ ν΄λΉ νμ λͺ¨λμ λͺ¨λ μμ± λ¬Έμ λΆμΌμΉλ₯Ό μμ ν΄μΌν©λλ€.
λ€μμ λλ¨Έμ§ νλͺ©μ μ°Ύλ μ€ν¬λ¦½νΈμ λλ€ (μλͺ»λ κΈμ μ΄μμ μ μμ).
import numpy as np
from sklearn.base import clone
from sklearn.utils.testing import all_estimators
from sklearn.utils.estimator_checks import pairwise_estimator_convert_X, enforce_estimator_tags_y
from numpydoc import docscrape
ests = all_estimators()
for name, Est in ests:
try:
estimator_orig = Est()
except:
continue
rng = np.random.RandomState(0)
X = pairwise_estimator_convert_X(rng.rand(40, 10), estimator_orig)
X = X.astype(object)
y = (X[:, 0] * 4).astype(np.int)
est = clone(estimator_orig)
y = enforce_estimator_tags_y(est, y)
try:
est.fit(X, y)
except:
continue
fitted_attrs = [(x, getattr(est, x, None))
for x in est.__dict__.keys() if x.endswith("_")
and not x.startswith("_")]
doc = docscrape.ClassDoc(type(est))
doc_attributes = []
incorrect = []
for att_name, type_definition, param_doc in doc['Attributes']:
if not type_definition.strip():
if ':' in att_name and att_name[:att_name.index(':')][-1:].strip():
incorrect += [name +
' There was no space between the param name and '
'colon (%r)' % att_name]
elif name.rstrip().endswith(':'):
incorrect += [name +
' Parameter %r has an empty type spec. '
'Remove the colon' % (att_name.lstrip())]
if '*' not in att_name:
doc_attributes.append(att_name.split(':')[0].strip('` '))
assert incorrect == []
fitted_attrs_names = [x[0] for x in fitted_attrs]
bad = sorted(list(set(fitted_attrs_names) ^ set(doc_attributes)))
if len(bad) > 0:
msg = '{}\n'.format(name) + '\n'.join(bad)
print("Docstring Error: Attribute mismatch in " + msg)
NMF ν΄λμ€ μ€λͺ
μ μμ± λ¬Έμμμ μ΄λ―Έ νλ μ΄μμ λΆμΌμΉλ₯Ό λ°κ²¬νμ΅λλ€. μ΄ μΌμ μ’ ν μμμ κ² κ°μμ. decomposition
λ° random_projection
νμ λͺ¨λ λ΄μμ λͺ κ°μ§ λ³κ²½ μ¬νμ μ μ ν μ€λΉκ° κ±°μλμμ΅λλ€.
λ€μμ ν¬ν¨νλ tree
νμ λͺ¨λ μμ± λ¬Έμ λΆμΌμΉ λ¬Έμ λ₯Ό ν΄κ²°ν μ μμ΅λλ€.
μ λ LinearRegression, [rank_, singular_] μμ μ€μ λλ€.
LinearSVC, [n_iter_] λ° LinearSVR, [n_iter_] μμ μ€μ λλ€.
λλ Gradient boosting
ie
μ κ²½ μ°μ§ λ§μΈμ, μμ±μ΄ λλ½ λ λΆλΆκ³Ό κ·Έλ μ§ μμ λΆλΆμ μλͺ» μ½μ
naive_bayes
νμ λͺ¨λμ λΆλ₯ μμ λν΄ λ¬Έμνλμ§ μμ classes_
μμ±λμλ κ² κ°μ΅λλ€. λλ κ·Έκ²μ κ³ μΉκΈ° μμνμ΅λλ€.
TfidfVectorizer, [fixed_vocabulary_] μμ ν κ²μ λλ€.
λλ μΌν κ²μ΄λ€ :
λλ μΌνκ³ μλ€ :
νΈμ§ : μ΄λ¬ν μμ±μ 곡κ°μμ λΉκ³΅κ°λ‘ λ³κ²½νλ λ¬Έμ λ₯Ό μ΄μμ΅λλ€ (μ°Έμ‘° : # 14364).
λλ μΌνκ³ μλ€ :
KernelCenterer, [K_fit_all_, K_fit_rows_]
MinMaxScaler, [n_samples_seen_]
λλ μΌν κ²μ΄λ€ :
λν KNeighborsClassifier
, KNeighborsRegressor
λ° neighbors
λͺ¨λμ λ€λ₯Έ ν΄λμ€μ μμ± λ¬Έμκ° μ ν μμμ λ°κ²¬νμ΅λλ€. νμ¬ 2 κ°μ μμ±μ΄μλ KNeighborsRegressor
μ€ :
effective_metric_
effective_metric_params_
KNeighborsClassifier
ν΄λμ€μλ λ€ κ°μ§ μμ±μ΄ μμ΅λλ€.
classes_
effective_metric_
effective_metric_params_
outputs_2d_
@alexitkes μ’μ μΊμΉ. κ°μ¬!
QuadraticDiscriminantAnalysis μμ , [classes_, covariance_]
KNeighborsClassifier μμ
, [classes_, effective_metric_, effective_metric_params_, outputs_2d_]
RadiusNeighborsClassifier, [classes_, effective_metric_, effective_metric_params_, outputs_2d_]
μμ
:
LinearSVC, [ν΄λμ€ _]
NuSVC, [class_weight_, classes_, fit_status_, probA_, probB_, shape_fit_]
SVC, [class_weight_, classes_, shape_fit_]
μμ :
μμ :
CountVectorizer, [stop_words_, vocabulary_]
DictVectorizer, [feature_names_, vocabulary_]
μλ !! μ΄ λ¬Έμ λ₯Ό λμ λλ¦¬κ³ μΆμ΅λλ€. λꡬλ μ§ μ΄λμλΆν° μμν΄μΌνλμ§ λ§ν΄ μ€ μ μλμ ??
dict_learning.py
@spbail μ ν¨μλ₯Ό μμ
μ€μ
λλ€.
@ olgadk7μ μ¬μ©νμ¬ LinearDiscriminantAnalysis μμ
RidgeClassifierCV @ npatta01μ μμ± λΆμΌμΉ μμ
@ ingrid88 + @ npatta01λ‘ DecisionTreeRegressor μμ
@ olgadk7μ μ¬μ©νμ¬ LinearDiscriminantAnalysis μμ
μμ μμ± μ€ν¬λ¦½νΈμ λν΄ μ€ νμ§. μ΄κ²μ λ¬Έμνλμμ΅λλ€.
@ olgadk7λ‘ AdditiveChi2Sampler μμ
@eugeniaftλ‘ LabelEncoder μμ
randomtreeclassifierμμ μμ μ μλν©λλ€!
μμ
νΌμ νΈλ‘
BernoulliRBM μμ
ExtraTreeClassifer μμ
@eugeniaftλ‘ LabelEncoder μμ
LabelEncoderλ λΆμΌμΉκ°μλ κ² κ°μ΅λλ€. OneClassSVMμμ μμ μ€μ λλ€.
νΈλ¦¬ νκ·μλ λμ ν΄λμ€λ₯Ό νκΈ°ν΄μΌνλ€κ³ μκ°ν©λλ€.
SVR μμ
μμ :
LinearRegression, [rank_, singular_] μμ
LatentDirichletAllocation μμ , [bound_, doc_topic_prior_, exp_dirichlet_component_, random_state_, topic_word_prior_]
μμ
BaggingClassifier, [n_features_, oob_decision_function_, oob_score_]
BaggingRegressor, [base_estimator_, n_features_, oob_prediction_, oob_score_]
BaggingClassifier, [n_features_, oob_decision_function_, oob_score_]
BaggingRegressor, [base_estimator_, n_features_, oob_prediction_, oob_score_]
oob_ μμ±μ PR # 14779μ μ£Όμμ΄κ³ , n_features_ & base_estimator_λ μ€ νμ§μ
λλ€.
μμ
AdaBoostClassifier, [base_estimator_]
μ λ°μ΄νΈ : https://github.com/scikit-learn/scikit-learn/pull/14477 μμ μ΄λ―Έ μμ λμμ΅λλ€.
λ€μ μ€νλ¦°νΈμμ΄ λ¬Έμ λ₯Ό κΆμ₯νμ§ μκ±°λ ν¨μ¬ λ μ λ³ λ λ²μ μ μ¬μ©ν΄μλ μλλ€κ³ μκ°ν©λλ€.
μ΄μ μ€νλ¦°νΈμ λν λ΄ κ²½νμ λ°λ₯΄λ©΄ μ¬μ ν λ§μ μ€ νμ§κ° μμΌλ©°, κ²°κ΅μλ κΈ°μ¬μλ€μκ² κ³΅κ° μμ±μ λΉκ³΅κ°λ‘ λ§λ€κΈ° μν΄ μ€μ λ‘ λΉλνλλ‘ μμ²νκ²λλλ°, μ΄λ νλ¦Όμμ΄ ν¨μ¬ λ μ΄λ ΅μ΅λλ€. μ무κ²λ).
ν @amueller @thomasjpfan WDYT?
λ€μ μ€νλ¦°νΈμμ΄ λ¬Έμ λ₯Ό κΆμ₯νμ§ μκ±°λ ν¨μ¬ λ μ λ³ λ λ²μ μ μ¬μ©ν΄μλ μλλ€κ³ μκ°ν©λλ€.
https://github.com/numpy/numpydoc/issues/213 μμ μ μν κ²κ³Ό κ°μ docstringμ λν μΌλ°μ μΈ μ ν¨μ± κ²μ¬ λκ΅¬κ° μλ€λ©΄ κΈ°μ¬μμκ² μ’ λ μ¬μΈ κ²μ λλ€. μΌλΆ μμ±μ΄ 곡κ°λμ΄μλ μλμ§λ§ 곡κ°λλ€λ μ¬μ€μ μμ ν λ€λ£¨μ§λ μλλ€λ λ° λμν©λλ€.
TfidfVectorizer, SpectralEmbedding, SparseRandomProjection
μ΄ μ
λ°μ΄νΈλμμ΅λλ€.
μ΄ λ¬Έμ λ₯Ό 첫 λ²μ§Έ λ¬Έμ λ‘ μκ°νκ³ μμμ§λ§ μ€ν¬λ¦½νΈμ λμ΄λ νμ λͺ¨λμ 무μμλ‘ μ νν ν μλͺ» λ¬Έμν λ κ²μΌλ‘ μ°Ύμ μ μΌν ν΄λμ€λ PLS * ν΄λμ€μ λλ€. κ·Έλ¬λ κ·Έλ€μ λΉκ³΅κ°λ‘ 보μ΄λ _pls_.py νμΌμ μ΄κ³ μμ΅λλ€. μμ μν΄μΌν©λκΉ μλλ©΄ λ€λ₯Έ μ’μ 첫 λ²μ§Έ λ¬Έμ λ₯Ό μ°ΎμμΌν©λκΉ?
μ€μ μμ
μ΄ κ³΅κ°λλ ν μκ²©μ΄ μμ΅λλ€. κ³΅κ° μμ
μ doc/modules/classes.rst
λμ΄λ©λλ€. PLS * ν΄λμ€κ° μμΌλ―λ‘ μμ λ‘κ² λ¬Έμννμμμ€.
λͺ¨λ μμ±μ μνλ²³μμΌλ‘ νμνλ κ²μ΄ ν©λ¦¬μ μ λκΉ? μΉμ μ ꡬ쑰λ₯Ό μ 곡νκ³ μΉμ μ μ½κΈ° μ½κ² λ§λ€ κ²μ΄λΌκ³ μκ°ν©λλ€.
@pwalchessen λμν©λλ€, μ’μ μκ°μ²λΌ λ€λ¦½λλ€. μ§μ μΈκΈνλ―μ΄ λλ κ·Έκ²μ ν μ€νΈμ μΆκ° ν κ²μ λλ€.
μ΄κ²λ€μ μ¬μ ν ββμ΄λ € μκ³ λ€μ λΆλͺ ν΄ λ³΄μ λλ€.
Docstring Error: Attribute mismatch in RidgeCV
cv_values_
Docstring Error: Attribute mismatch in RidgeClassifier
classes_
Docstring Error: Attribute mismatch in RidgeClassifierCV
classes_
cv_values_
Docstring Error: Attribute mismatch in SkewedChi2Sampler
random_offset_
random_weights_
Docstring Error: Attribute mismatch in PLSCanonical
coef_
x_mean_
x_std_
y_mean_
y_std_
Docstring Error: Attribute mismatch in PLSRegression
x_mean_
x_std_
y_mean_
y_std_
Docstring Error: Attribute mismatch in PLSSVD
x_mean_
x_std_
y_mean_
y_std_
Docstring Error: Attribute mismatch in PassiveAggressiveClassifier
loss_function_
Docstring Error: Attribute mismatch in Perceptron
loss_function_
Docstring Error: Attribute mismatch in PolynomialFeatures
powers_
Docstring Error: Attribute mismatch in QuadraticDiscriminantAnalysis
covariance_
Docstring Error: Attribute mismatch in RBFSampler
random_offset_
random_weights_
Docstring Error: Attribute mismatch in RadiusNeighborsClassifier
n_samples_fit_
outlier_label_
Docstring Error: Attribute mismatch in RadiusNeighborsRegressor
n_samples_fit_
Docstring Error: Attribute mismatch in RadiusNeighborsTransformer
effective_metric_
effective_metric_params_
n_samples_fit_
Docstring Error: Attribute mismatch in ElasticNet
dual_gap_
sparse_coef_
Docstring Error: Attribute mismatch in ElasticNetCV
dual_gap_
Docstring Error: Attribute mismatch in EllipticEnvelope
dist_
raw_covariance_
raw_location_
raw_support_
κ·Έλ¦¬κ³ λ λ§μ ...
μΆκ°ν΄μΌνλ λ―Έν΄κ²° μμ± λͺ©λ‘μ΄ μ λ°μ΄νΈλμμ΅λλ€.
ExtraTreeRegressor
λ¬Έμμ feature_importances_
μ μΆκ°νκ² μ΅λλ€.
λ°μ΄ν° κ³Όν μ 곡 κ·Έλ£Ήκ³Ό μ λ BayesianRidge, [X_offset_, X_scale_] μμ± λ¬Έμ μμ μ μμν κ²μ λλ€.
μλ νμΈμ, μ ν¬ κΈ°κ³ μ κ·Έλ£Ήμ λ€μ μμ μ μν ν κ²μ λλ€.
# 16826μ μ μ¬μ μμ μ¬ν
ν
μ€νΈλ # 16286μ μΆκ°λμμ΅λλ€.
νμ¬ κ±΄λ λ°λ λͺ κ°μ§ ν΄λμ€κ° μμ΅λλ€.
https://github.com/scikit-learn/scikit-learn/blob/753da1de06a764f264c3f5f4817c9190dbe5e021/sklearn/tests/test_docstring_parameters.py#L180
μ΄λ€ μ€ μΌλΆμλ μ΄λ―Έ PRμ΄ μμΌλ―λ‘ μμ μ μμνκΈ° μ μ νμΈν΄μΌν©λλ€.
μ΄λ€ μ€ μΌλΆμλ μ΄λ―Έ PRμ΄ μμΌλ―λ‘ μμ μ μμνκΈ° μ μ νμΈν΄μΌν©λλ€.
μ’μ μ΅μ μ λ³ν©λμ§ μμ κ³΅κ° PRμ νμΈνκ³ μλ£νλ κ²μ λλ€.
μΌλ°μ μΌλ‘ PRμ΄ 2-3 μ£Ό μ΄μ νλμνμ§ μμλ€λ©΄μ΄λ₯Ό μ΄μ΄ λ°μ λλ΄λ €κ³ λ Έλ ₯νλ κ²μ΄ μ’μ΅λλ€.
μ΄λ¬ν μ루μ μ κ΄μ¬μ΄μλ κ²½μ° λ§€κ° λ³μκ° λͺ¨λ λ¬Έμνλμλμ§ μ¬λΆλ₯Ό νμΈνλ μ€νν¬μ€ νμ₯μ ꡬννλ λ°©λ²μ΄ μμ΅λλ€ (μ : https://github.com/sdpython/pyquickhelper/blob μ°Έμ‘°). /master/src/pyquickhelper/sphinxext/sphinx_docassert_extension.py). scikit-learn λ¬Έμμ μ¬μ©μ μ§μ λ¬Έμλ₯Ό μΆκ°νλ κ²μ΄ μ μ© ν μ μμ΅λλ€.
@sdpython ,
ν₯λ―Έ λ‘κ΅°μ!
IIRCμλ λͺ¨λ μμ±μ΄ λ¬Έμνλμλμ§ νμΈνλ κ³΅ν΅ ν μ€νΈκ° μμ΅λλ€. https://github.com/scikit-learn/scikit-learn/pull/16286 μ μΆκ°λμμ΅λλ€
μ΄λ€ μ κ·Ό λ°©μμ΄ λ λ°λμ§ν μ§μ λν μ 보μ μ κ° ν μ견μ μμ§λ§ λλ½ λ λ§€κ° λ³μλ₯Ό λ¬Έμννλ κ²μ΄ κ²μ¬ λ°©λ²μ κ²°μ νλ κ²λ³΄λ€ μ°μ μμκ° λ λμ κ²μ λλ€.
μ€νν¬μ€μμ κ·Έλ κ² ν λμ λ¬Έμ λ μ°λ¦¬μ κ²½μ° λ¬Έμλ₯Ό μμ±νλ λ° μ€λ μκ°μ΄ 걸리λ―λ‘ (λͺ¨λ μμ λ₯Ό μμ±νκΈ° λλ¬Έμ) λ¨μ ν μ€νΈ λλ λ 립 μ€ν ν λꡬλ₯Ό μ¬μ©νκΈ°κ° λ μ½μ΅λλ€. μ΄μ μ https://github.com/scikit-learn/scikit-learn/issues/15440μμ numpydoc μ ν¨μ± κ²μ¬ λ₯Ό μ¬μ© κ²μ¬ λ https://github.com/terrencepreillyμμ μν ν μ μμ΅λλ€. / darglint. λ°λΌμ λ μ€νΈλ§μ λν΄ 5 κ°μ§ λ€λ₯Έ μ ν¨μ± κ²μ¬ λꡬλ₯Ό μ¬μ©νλ μν©λ νΌν΄μΌν©λλ€. :)
μλ₯Ό λ€μ΄ pytestλ₯Ό μ¬μ©νμ¬ κ²°κ³Όλ₯Ό νμΈνλ κΈ°λ₯μ΄ λ§μμ λλλ€.
pytest -v --runxfail -k IsolationForest sklearn/tests/test_docstring_parameters.py
λ°λΌμ μ€νν¬μ€ λΉλλ₯Ό λ³κ²½ν νμκ° μμ μλ μμ΅λλ€.
μ΄λ€ μμ± λ μ€νΈλ§μ΄ μμ§ λλ½λμλμ§ νμΈνμ΅λλ€ (μμ λͺ©λ‘μ μ€λλμμ΅λλ€). λ€μμ λ΄κ° μ°Ύμ κ²μ λλ€.
BayesianGaussianMixture, [mean_precision_prior]
BayesianRidge, [X_offset_, X_scale_]
BernoulliNB, [coef_, intercept_]
μμ λ무, [fit_, partial_fit_]
CCA, [x_mean_, x_std_, y_mean_, y_std_]
DecisionTreeRegressor, [classes_, n_classes_]
DummyClassifier, [output_2d_]
DummyRegressor, [output_2d_]
ElasticNet, [dual_gap_]
ElasticNetCV, [dual_gap_]
ExtraTreeRegressor, [classes_, n_classes_]
FeatureAgglomeration, [n_components_]
LarsCV, [νμ± _]
μ¬κ°λ―Έ, [dual_gap_]
LassoLarsCV, [νμ± _]
LassoLarsIC, [alphas_]
MiniBatchKMeans, [counts_, init_size_, n_iter_]
MultiTaskElasticNet, [dual_gap_, eps_, sparse_coef_]
MultiTaskElasticNetCV, [dual_gap_]
MultiTaskLasso, [dual_gap_, eps_, sparse_coef_]
MultiTaskLassoCV, [dual_gap_]
NuSVR, [probA_, probB_]
OneClassSVM, [probA_, probB_]
OneVsRestClassifier, [coef_, intercept_]
OrthogonalMatchingPursuit, [n_nonzero_coefs_]
PLSCanonical, [x_mean_, x_std_, y_mean_, y_std_]
PLSSVD, [x_mean_, x_std_, y_mean_, y_std_]
SVR, [probA_, probB_]
@marenwestermann κ°μ¬ν©λλ€!
MiniBatchKMeans μμ μ€μ λλ€.
μ¬κ°λ―Έ μμ μ€μ λλ€.
μ΄μ MultiTaskElasticNet λ° MultiTaskLassoμ sparse_coef_
μμ±μ μΆκ°νλ μ€μ
λλ€.
μ λ LarsCVμμ μΌνκ³ μμ΅λλ€.
@thomasjpfan SVR
λ° OneClassSVM
ν΄λμ€μμ λ§ν©λλ€.
"probA_ μμ±μ λ²μ 0.23μμ λ μ΄μ μ¬μ©λμ§ μμΌλ©° λ²μ 0.25μμ μ κ±°λ©λλ€." κ³Ό
"probB_ μμ±μ λ²μ 0.23μμ λ μ΄μ μ¬μ©λμ§ μμΌλ©° λ²μ 0.25μμ μ κ±°λ©λλ€."
λ°λΌμ μ΄λ¬ν μμ±μ λ μ΄μ λ¬Έμκ° νμνμ§ μμ΅λλ€.
μ¬κΈ°μμμ΄ λ μμ±μ NuSVR
ν΄λμ€μμλ λ μ΄μ μ¬μ©λμ§ μμ΅λκΉ?
ExtraTreeRegressorμ λν classes_
λ° n_classes_
μμ±μ μ€ νμ§μ
λλ€.
λ°λΌμ μ΄λ¬ν μμ±μ λ μ΄μ λ¬Έμκ° νμνμ§ μμ΅λλ€.
μ¬κΈ°μλΆν°μ΄ λ μμ±μ NuSVR ν΄λμ€μμλ λ μ΄μ μ¬μ©λμ§ μμ΅λκΉ?
μ°λ¦¬λ κ·Έκ²λ€μ λ μ΄μ μ¬μ©νμ§ μκΈ° λλ¬Έμ λ¬Έμν ν νμκ° μλ€κ³ λ§ν κ²μ λλ€.
ExtraTreeRegressorμ λν classes_ λ° n_classes_ μμ±μ κ±°μ§ κΈμ μ λλ€.
μ, κ·Έκ²λ€μ λ μ΄μ μ¬μ©λμ§ μκ³ μμ§ μ κ±°λμ§ μμ κ²½μ° μ κ±°ν΄μΌν©λλ€.
DecisionTreeRegressor
μμ
λ΄μ© :
"n_classes_ μμ±μ λ²μ 0.22μμ λ μ΄μ μ¬μ©λμ§ μμΌλ©° 0.24μμ μ κ±°λ©λλ€."
"classes_ μμ±μ λ²μ 0.22μμ λ μ΄μ μ¬μ©λμ§ μμΌλ©° 0.24μμ μ κ±°λ©λλ€."
λ°λΌμ μ΄λ¬ν μμ±λ λ¬Έμνκ° νμνμ§ μμ΅λκΉ?
λ°λΌμ μ΄λ¬ν μμ±λ λ¬Έμνκ° νμνμ§ μμ΅λκΉ?
μ€λ₯Έμͺ½ @Abilityguy , μ§μ ν΄ μ£Όμ μ κ°μ¬ν©λλ€.
_RidgeGCVμμ μλ λΆμΌμΉλ₯Ό λ³Ό μ μμ΅λλ€.
λ
μ€νΈλ§ μ€λ₯ : _RidgeGCVμ μμ± λΆμΌμΉ
alpha_
μ΅κ³ μ μ_
coef_
dual_coef_
intercept_
n_features_in_
κ·Έλ¦¬κ³ _BaseRidgeCVμμ :
λ
μ€νΈλ§ μ€λ₯ : _BaseRidgeCVμ μμ± λΆμΌμΉ
alpha_
μ΅κ³ μ μ_
coef_
intercept_
n_features_in_
λ΄κ° λ°μλ λ κΉμ? λλ 첫 λ²μ§Έ νμ΄λ¨Έμ΄λ©° κΈ°μ¬νκ³ μΆμ΅λλ€.
@marenwestermann ν΄λμ€ FeatureAgglomerationμμ, λ²μ 0.21μμ n_components_λ₯Ό λ체νκΈ° μν΄ n_connected_components_κ° μΆκ°λμλλ°, n_components_κ° κ±°μ§ μμ±μΌ κ²μ λλ€ ..?
λ΄ μ΄ν΄μμ @ srivathsa729 μ. κ·Έλ¬λ ν΅μ¬ κ°λ°μ μ€ ν λͺ μ΄ λ€μ νμΈν μ μλ€λ©΄ μ’μ κ²μ λλ€.
ElasticNetμ μ¬μ©νκ² μ΅λλ€.
BayesianRidgeμ λν X_offset_ λ° X_scale_ μμ±μ λν λ¬Έμκ° # 18607κ³Ό ν¨κ» μΆκ°λμμ΅λλ€.
output_2d_ μμ±μ DummyClassifier λ° DummyRegressorμμ λ μ΄μ μ¬μ©λμ§ μμ΅λλ€ (# 14933 μ°Έμ‘°).
μ΄ PR μλ¨μμ @amueller κ° μ 곡 ν μ€ν¬λ¦½νΈλ₯Ό μ€ννμ΅λλ€ (μΌμ΄ μμ§μ΄κΈ° λλ¬Έμ μ½λλ₯Ό μ½κ° μμ ν΄μΌ ν¨). # 16112μ λμ
λ n_features_in_
λ₯Ό μ μΈνκ³ λ¬Έμνν΄μΌ ν μμ±μ λ μ΄μ μ°Ύμ μ μμ΅λλ€. μ΄ μμ±μ μκ° λ λͺ¨λ ν΄λμ€μμ λ¬Έμνλμ§ μμμ΅λλ€. λ¬Έμνν΄μΌν©λκΉ?
ν @NicolasHug
κ°μ₯ μ μ©ν λκΈ
κ° μΆμ κΈ°μ λν μμ± λ μ€νΈλ§ λλ½
PRμμμ΄ λ¬Έμ λ₯Ό μ°Έμ‘°νμΈμ.