Skip to content

Commit 1d94120

Browse files
committed
Add inline comments'
1 parent 9c2830f commit 1d94120

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

sklearn/ensemble/tests/test_forest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,6 +1697,8 @@ def test_max_samples_boundary_regressors(name):
16971697
assert ms_1_ms == pytest.approx(ms_None_ms)
16981698

16991699

1700+
# TODO: Trees do not preserve dtype when fitting/predicting.
1701+
# Add `global_dtype` when Trees have this ability.
17001702
@pytest.mark.parametrize("name", FOREST_CLASSIFIERS)
17011703
def test_max_samples_boundary_classifiers(name):
17021704
X_train, X_test, y_train, _ = train_test_split(

sklearn/tree/tests/test_tree.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ def test_weighted_classification_toy():
259259
assert_array_equal(clf.predict(T), true_result, "Failed with {0}".format(name))
260260

261261

262+
# TODO: Trees do not preserve dtype when fitting/predicting.
263+
# Add `global_dtype` when Trees have this ability.
262264
@pytest.mark.parametrize("Tree", REG_TREES.values())
263265
@pytest.mark.parametrize("criterion", REG_CRITERIONS)
264266
def test_regression_toy(Tree, criterion):
@@ -2138,6 +2140,8 @@ def test_poisson_vs_mse():
21382140
assert metric_poi < 0.75 * metric_dummy
21392141

21402142

2143+
# TODO: Trees do not preserve dtype when fitting/predicting.
2144+
# Add `global_dtype` when Trees have this ability.
21412145
@pytest.mark.parametrize("criterion", REG_CRITERIONS)
21422146
def test_decision_tree_regressor_sample_weight_consistentcy(criterion):
21432147
"""Test that the impact of sample_weight is consistent."""

0 commit comments

Comments
 (0)