← Về thư mục
tests/scikit-learn/test_scripts.py
- mixed_frame · function · L43-L52 — def mixed_frame(n: int = 60) -> pd.DataFrame
- PreprocessingPipelineTests · class · L59-L126 — class PreprocessingPipelineTests(unittest.TestCase)
- setUp · method · L60-L64 — def setUp(self) -> None
- test_it_returns_an_unfitted_column_transformer · method · L66-L73 — def test_it_returns_an_unfitted_column_transformer(self) -> None
- test_numeric_columns_are_imputed_and_standardised · method · L75-L84 — def test_numeric_columns_are_imputed_and_standardised(self) -> None
- test_categorical_columns_become_one_hot_indicators · method · L86-L91 — def test_categorical_columns_become_one_hot_indicators(self) -> None
- test_an_unseen_category_does_not_raise_at_transform_time · method · L93-L102 — def test_an_unseen_category_does_not_raise_at_transform_time(self) -> None: # handle_unknown='ignore' -- a category that appears only in the test # fold must not blow up the whole cross-validation run.
- test_a_missing_categorical_value_is_filled_rather_than_dropped · method · L104-L108 — def test_a_missing_categorical_value_is_filled_rather_than_dropped(self) -> None
- test_it_can_be_composed_into_a_single_estimator · method · L110-L120 — def test_it_can_be_composed_into_a_single_estimator(self) -> None
- test_columns_outside_the_two_lists_are_dropped · method · L122-L126 — def test_columns_outside_the_two_lists_are_dropped(self) -> None
- ClusteringPreprocessTests · class · L129-L155 — class ClusteringPreprocessTests(unittest.TestCase)
- setUp · method · L130-L133 — def setUp(self) -> None
- test_scaling_standardises_every_feature · method · L135-L138 — def test_scaling_standardises_every_feature(self) -> None
- test_scaling_can_be_turned_off · method · L140-L144 — def test_scaling_can_be_turned_off(self) -> None
- test_pca_reduces_to_the_requested_number_of_components · method · L146-L150 — def test_pca_reduces_to_the_requested_number_of_components(self) -> None
- test_the_input_matrix_is_not_mutated · method · L152-L155 — def test_the_input_matrix_is_not_mutated(self) -> None
- ScratchDirectoryTestCase · class · L158-L172 — class ScratchDirectoryTestCase(unittest.TestCase)
- setUp · method · L167-L172 — def setUp(self) -> None
- OptimalKTests · class · L175-L201 — class OptimalKTests(ScratchDirectoryTestCase)
- setUp · method · L176-L181 — def setUp(self) -> None
- test_three_well_separated_blobs_are_found · method · L183-L190 — def test_three_well_separated_blobs_are_found(self) -> None: # A silhouette search that cannot recover an obvious k=3 is not usable.
- test_the_search_covers_every_k_it_was_given · method · L192-L201 — def test_the_search_covers_every_k_it_was_given(self) -> None
- AlgorithmComparisonTests · class · L204-L231 — class AlgorithmComparisonTests(unittest.TestCase)
- setUp · method · L205-L209 — def setUp(self) -> None
- test_several_algorithms_are_compared · method · L211-L216 — def test_several_algorithms_are_compared(self) -> None
- test_kmeans_recovers_the_planted_structure · method · L218-L231 — def test_kmeans_recovers_the_planted_structure(self) -> None
- EndToEndTests · class · L234-L258 — class EndToEndTests(ScratchDirectoryTestCase)
- setUp · method · L235-L237 — def setUp(self) -> None
- test_the_full_clustering_analysis_runs · method · L239-L246 — def test_the_full_clustering_analysis_runs(self) -> None
- test_the_classification_pipeline_trains_and_scores · method · L248-L258 — def test_the_classification_pipeline_trains_and_scores(self) -> None