Search is not available for this dataset
repo
stringlengths
2
152
⌀
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_balancing.py
__author__ = "feurerm" import copy import numpy as np import sklearn.datasets import sklearn.metrics from autosklearn.pipeline.classification import SimpleClassificationPipeline from autosklearn.pipeline.components.classification.adaboost import AdaboostClassifier from autosklearn.pipeline.components.classification....
8,915
38.451327
120
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_categorical_imputation.py
import numpy as np import pandas as pd from scipy import sparse from autosklearn.pipeline.components.data_preprocessing.imputation.categorical_imputation import ( # noqa: E501 CategoricalImputation, ) import pytest @pytest.fixture def input_data_imputation(request): size = (50, 20) X = np.array(np.rand...
2,607
31.6
112
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_category_shift.py
import numpy as np import scipy.sparse from autosklearn.pipeline.components.data_preprocessing.category_shift.category_shift import ( # noqa: E501 CategoryShift, ) import unittest class CategoryShiftTest(unittest.TestCase): def test_data_type_consistency(self): X = np.random.randint(0, 255, (3, 4))...
631
27.727273
108
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_data_preprocessing.py
import numpy as np from scipy import sparse from autosklearn.pipeline.components.data_preprocessing.feature_type import ( FeatTypeSplit, ) import unittest class PreprocessingPipelineTest(unittest.TestCase): def do_a_fit_transform(self, sparse_input): # X will be the input and Y is what we expect aft...
5,634
41.689394
88
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_data_preprocessing_categorical.py
import numpy as np from scipy import sparse from autosklearn.pipeline.components.data_preprocessing.feature_type_categorical import ( # noqa: E501 CategoricalPreprocessingPipeline, ) import pytest import unittest class CategoricalPreprocessingPipelineTest(unittest.TestCase): def test_data_type_consistency(...
3,993
33.730435
103
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_data_preprocessing_feat_type.py
from autosklearn.pipeline.components.data_preprocessing.feature_type import ( FeatTypeSplit, ) import unittest class PreprocessingPipelineFeatTypeTest(unittest.TestCase): num_numerical = 6 num_categorical = 3 num_text = 11 def test_single_type(self): DPP = FeatTypeSplit(feat_type={"A": ...
5,281
35.937063
78
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_data_preprocessing_numerical.py
import numpy as np from scipy import sparse from autosklearn.pipeline.components.data_preprocessing.feature_type_numerical import ( NumericalPreprocessingPipeline, ) import unittest class NumericalPreprocessingPipelineTest(unittest.TestCase): def test_data_type_consistency(self): X = np.random.rand(...
2,906
37.76
87
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_data_preprocessing_text.py
import numpy as np import pandas as pd from autosklearn.pipeline.components.data_preprocessing.text_encoding.tfidf_encoding import ( # noqa: E501 TfidfEncoder as Vectorizer, ) import pytest @pytest.mark.parametrize( "analyzer,per_column", [("word", True), ("word", False), ("char", True), ("char", False...
8,356
28.634752
107
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_minority_coalescence.py
import numpy as np import scipy.sparse from autosklearn.pipeline.components.data_preprocessing.minority_coalescense.minority_coalescer import ( # noqa: E501 MinorityCoalescer, ) from autosklearn.pipeline.components.data_preprocessing.minority_coalescense.no_coalescense import ( # noqa: E501 NoCoalescence, ) ...
1,045
31.6875
118
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_numerical_imputation.py
from scipy import sparse from autosklearn.pipeline.components.data_preprocessing.imputation.numerical_imputation import ( # noqa: E501 NumericalImputation, ) from autosklearn.pipeline.util import PreprocessingTestCase, _test_preprocessing class NumericalImputationTest(PreprocessingTestCase): def test_defaul...
1,401
40.235294
110
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_one_hot_encoding.py
import numpy as np from scipy import sparse from autosklearn.pipeline.components.data_preprocessing.categorical_encoding.no_encoding import ( # noqa: E501 NoEncoding, ) from autosklearn.pipeline.components.data_preprocessing.categorical_encoding.one_hot_encoding import ( # noqa: E501 OneHotEncoder, ) from au...
3,571
37.408602
116
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_scaling.py
import numpy as np import sklearn.datasets from autosklearn.pipeline.components.data_preprocessing.rescaling import RescalingChoice from autosklearn.pipeline.util import get_dataset import unittest class ScalingComponentTest(unittest.TestCase): def _test_helper(self, Preprocessor, dataset=None, make_sparse=Fals...
2,419
39.333333
88
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/data_preprocessing/test_variance_threshold.py
from scipy import sparse from autosklearn.pipeline.components.data_preprocessing.variance_threshold.variance_threshold import ( # noqa: E501 VarianceThreshold, ) from autosklearn.pipeline.util import PreprocessingTestCase, _test_preprocessing class VarianceThresholdTest(PreprocessingTestCase): def test_defa...
1,407
40.411765
116
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/dummy_components/__init__.py
0
0
0
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/dummy_components/dummy_component_1.py
import os import sys from autosklearn.pipeline.components.base import AutoSklearnClassificationAlgorithm # Add the parent directory to the path to import the parent component this_directory = os.path.dirname(os.path.abspath(__file__)) parent_directory = os.path.abspath(os.path.join(this_directory, "..")) sys.path.app...
412
28.5
83
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/dummy_components/dummy_component_2.py
import os import sys from autosklearn.pipeline.components.base import AutoSklearnClassificationAlgorithm # Add the parent directory to the path to import the parent component as # dummy_components.dummy_component_2.DummyComponent1 this_directory = os.path.dirname(os.path.abspath(__file__)) parent_directory = os.path....
468
30.266667
83
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/dummy_components/dummy_component_import.py
from autosklearn.pipeline.components.base import find_components # noqa from autosklearn.pipeline.components.base import ( # noqa AutoSklearnClassificationAlgorithm, )
174
34
72
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/__init__.py
__author__ = "feurerm"
23
11
22
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_NoPreprocessing.py
import numpy as np from autosklearn.pipeline.components.feature_preprocessing.no_preprocessing import ( NoPreprocessing, ) from autosklearn.pipeline.util import PreprocessingTestCase, _test_preprocessing class NoneComponentTest(PreprocessingTestCase): def test_default_configuration(self): transformat...
1,025
43.608696
84
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_choice.py
import autosklearn.pipeline.components.feature_preprocessing as fp import unittest class FeatureProcessingTest(unittest.TestCase): def test_get_available_components(self): # Target type for target_type, num_values in [("classification", 15), ("regression", 14)]: data_properties = {"ta...
1,168
34.424242
84
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_densifier.py
import numpy as np from autosklearn.pipeline.components.feature_preprocessing.densifier import Densifier from autosklearn.pipeline.util import PreprocessingTestCase, _test_preprocessing class DensifierComponentTest(PreprocessingTestCase): def test_default_configuration(self): transformation, original = _...
669
40.875
85
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_extra_trees_classification.py
import sklearn.metrics from sklearn.linear_model import RidgeClassifier from autosklearn.pipeline.components.feature_preprocessing.extra_trees_preproc_for_classification import ( # noqa: E501 ExtraTreesPreprocessorClassification, ) from autosklearn.pipeline.util import ( PreprocessingTestCase, _test_prepr...
3,081
41.805556
120
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_extra_trees_regression.py
import sklearn.metrics from sklearn.ensemble import ExtraTreesRegressor from autosklearn.pipeline.components.feature_preprocessing.extra_trees_preproc_for_regression import ( # noqa: E501 ExtraTreesPreprocessorRegression, ) from autosklearn.pipeline.util import ( PreprocessingTestCase, _test_preprocessing...
3,044
42.5
116
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_fast_ica.py
import sklearn.metrics from sklearn.linear_model import Ridge from autosklearn.pipeline.components.feature_preprocessing.fast_ica import FastICA from autosklearn.pipeline.util import ( PreprocessingTestCase, _test_preprocessing, get_dataset, ) import unittest class FastICAComponentTest(PreprocessingTest...
1,715
38
84
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_feature_agglomeration.py
import sklearn.metrics from sklearn.ensemble import RandomForestClassifier from autosklearn.pipeline.components.feature_preprocessing.feature_agglomeration import ( # noqa: E501 FeatureAgglomeration, ) from autosklearn.pipeline.util import ( PreprocessingTestCase, _test_preprocessing, get_dataset, ) ...
1,853
40.2
103
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_kernel_pca.py
import sklearn.metrics from sklearn.linear_model import RidgeClassifier from autosklearn.pipeline.components.feature_preprocessing.kernel_pca import KernelPCA from autosklearn.pipeline.util import ( PreprocessingTestCase, _test_preprocessing, get_dataset, ) import unittest class KernelPCAComponentTest(P...
2,267
38.103448
86
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_kitchen_sinks.py
from autosklearn.pipeline.components.feature_preprocessing.kitchen_sinks import ( RandomKitchenSinks, ) from autosklearn.pipeline.util import PreprocessingTestCase, _test_preprocessing import unittest class KitchenSinkComponent(PreprocessingTestCase): def test_default_configuration(self): transformat...
756
38.842105
87
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_liblinear.py
import sklearn.metrics from sklearn.linear_model import RidgeClassifier from autosklearn.pipeline.components.feature_preprocessing.liblinear_svc_preprocessor import ( # noqa: E501 LibLinear_Preprocessor, ) from autosklearn.pipeline.util import ( PreprocessingTestCase, _test_preprocessing, get_dataset,...
2,257
35.419355
108
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_nystroem_sampler.py
import numpy as np import sklearn.preprocessing from autosklearn.pipeline.components.feature_preprocessing.nystroem_sampler import ( Nystroem, ) from autosklearn.pipeline.util import _test_preprocessing, get_dataset import unittest class NystroemComponentTest(unittest.TestCase): def test_default_configurati...
3,902
39.237113
84
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_pca.py
import numpy as np from autosklearn.pipeline.components.feature_preprocessing.pca import PCA from autosklearn.pipeline.util import PreprocessingTestCase, _test_preprocessing class PCAComponentTest(PreprocessingTestCase): def test_default_configuration(self): transformations = [] for i in range(2)...
873
38.727273
87
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_polynomial.py
import sklearn.metrics from sklearn.tree import DecisionTreeClassifier from autosklearn.pipeline.components.feature_preprocessing.polynomial import ( PolynomialFeatures, ) from autosklearn.pipeline.util import ( PreprocessingTestCase, _test_preprocessing, get_dataset, ) class PolynomialFeaturesCompon...
2,887
42.757576
86
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_random_trees_embedding.py
import numpy as np import scipy.sparse from autosklearn.pipeline.components.feature_preprocessing.random_trees_embedding import ( # noqa: E501 RandomTreesEmbedding, ) from autosklearn.pipeline.util import _test_preprocessing, get_dataset import unittest class RandomTreesEmbeddingComponentTest(unittest.TestCase...
1,962
39.061224
104
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_select_percentile_classification.py
import numpy as np import scipy.sparse import sklearn.preprocessing from autosklearn.pipeline.components.feature_preprocessing.select_percentile_classification import ( # noqa: E501 SelectPercentileClassification, ) from autosklearn.pipeline.util import _test_preprocessing, get_dataset import unittest class Se...
4,573
40.207207
114
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_select_percentile_regression.py
import numpy as np from autosklearn.pipeline.components.feature_preprocessing.select_percentile_regression import ( # noqa: E501 SelectPercentileRegression, ) from autosklearn.pipeline.util import _test_preprocessing, get_dataset import unittest class SelectPercentileRegressionTest(unittest.TestCase): def ...
1,944
37.137255
110
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_select_rates_classification.py
import numpy as np import scipy.sparse import sklearn.preprocessing from autosklearn.pipeline.components.feature_preprocessing.select_rates_classification import ( # noqa: E501 SelectClassificationRates, ) from autosklearn.pipeline.util import _test_preprocessing, get_dataset import unittest class SelectClassi...
4,623
39.920354
109
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_select_rates_regression.py
import numpy as np import scipy.sparse import sklearn.preprocessing from autosklearn.pipeline.components.feature_preprocessing.select_rates_regression import ( # noqa: E501 SelectRegressionRates, ) from autosklearn.pipeline.util import _test_preprocessing, get_dataset import unittest class SelectRegressionRate...
3,654
39.164835
105
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/feature_preprocessing/test_truncatedSVD.py
import sklearn.metrics from sklearn.linear_model import RidgeClassifier from autosklearn.pipeline.components.feature_preprocessing.truncatedSVD import ( TruncatedSVD, ) from autosklearn.pipeline.util import ( PreprocessingTestCase, _test_preprocessing, get_dataset, ) import unittest class TruncatedS...
1,960
36
80
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/__init__.py
0
0
0
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_adaboost.py
import sklearn.ensemble from autosklearn.pipeline.components.regression.adaboost import AdaboostRegressor from .test_base import BaseRegressionComponentTest class AdaBoostComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston"] = 0.5951486466070626 res["defaul...
736
28.48
81
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_ard_regression.py
import sklearn.linear_model from autosklearn.pipeline.components.regression.ard_regression import ARDRegression from .test_base import BaseRegressionComponentTest class ARDRegressionComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston"] = 0.7033160711079323 ...
714
27.6
83
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_base.py
from typing import Container, Type import numpy as np import sklearn.metrics from autosklearn.pipeline.components.regression import RegressorChoice, _regressors from autosklearn.pipeline.components.regression.libsvm_svr import LibSVM_SVR from autosklearn.pipeline.constants import SPARSE from autosklearn.pipeline.util...
15,441
31.509474
88
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_decision_tree.py
import sklearn.tree from autosklearn.pipeline.components.regression.decision_tree import DecisionTree from .test_base import BaseRegressionComponentTest class DecisionTreeComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston"] = 0.35616796434879905 res["defau...
735
28.44
81
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_extra_trees.py
import sklearn.ensemble from autosklearn.pipeline.components.regression.extra_trees import ExtraTreesRegressor from .test_base import BaseRegressionComponentTest class ExtraTreesComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston"] = 0.8539264243687228 res[...
998
32.3
86
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_gaussian_process.py
import sklearn.gaussian_process from autosklearn.pipeline.components.regression.gaussian_process import GaussianProcess from .test_base import BaseRegressionComponentTest class GaussianProcessComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston_le_ge"] = [0.6, 0...
1,133
28.842105
87
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_gradient_boosting.py
import sklearn.ensemble from autosklearn.pipeline.components.regression.gradient_boosting import ( GradientBoosting, ) from .test_base import BaseRegressionComponentTest class GradientBoostingComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston"] = 0.7491382...
726
26.961538
74
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_k_nearest_neighbors.py
import sklearn.neighbors from autosklearn.pipeline.components.regression.k_nearest_neighbors import ( KNearestNeighborsRegressor, ) from .test_base import BaseRegressionComponentTest class KNearestNeighborsComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston...
793
28.407407
76
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_liblinear_svr.py
import sklearn.svm from autosklearn.pipeline.components.regression.liblinear_svr import LibLinear_SVR from .test_base import BaseRegressionComponentTest class SupportVectorComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston"] = 0.6768297818275556 res["defaul...
802
29.884615
82
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_mlp.py
from typing import Any, Dict import sklearn.neural_network from autosklearn.pipeline.components.regression.mlp import MLPRegressor from .test_base import BaseRegressionComponentTest class MLPComponentTest(BaseRegressionComponentTest): # NOTE: `default_boston` # # Github runners seem to indeterministicl...
2,944
41.071429
134
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_random_forests.py
import sklearn.ensemble from autosklearn.pipeline.components.regression.random_forest import RandomForest from .test_base import BaseRegressionComponentTest class RandomForestComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston"] = 0.8410063895401654 res["bos...
990
33.172414
81
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_sgd.py
import sklearn.linear_model from autosklearn.pipeline.components.regression.sgd import SGD from .test_base import BaseRegressionComponentTest class SGDComponentTest(BaseRegressionComponentTest): __test__ = True # Values are extremely bad because the invscaling does not drop the # learning rate aggressi...
971
35
77
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/components/regression/test_support_vector_regression.py
import sklearn.linear_model from autosklearn.pipeline.components.regression.libsvm_svr import LibSVM_SVR from .test_base import BaseRegressionComponentTest class SupportVectorComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston"] = -0.030006883949312613 res["...
722
29.125
76
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/implementations/__init__.py
__author__ = "feurerm"
23
11
22
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/implementations/test_CategoryShift.py
import numpy as np import scipy.sparse from autosklearn.pipeline.implementations.CategoryShift import CategoryShift import unittest class CategoryShiftTest(unittest.TestCase): def test_dense(self): X = np.random.randint(0, 255, (3, 4)) Y = CategoryShift().fit_transform(X) self.assertTrue...
1,181
31.833333
82
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/implementations/test_MinorityCoalescer.py
import numpy as np import scipy.sparse from autosklearn.pipeline.implementations.MinorityCoalescer import MinorityCoalescer import unittest class MinorityCoalescerTest(unittest.TestCase): @property def X1(self): # Generates an array with categories 3, 4, 5, 6, 7 and occurences of 30%, # 30%,...
3,147
34.370787
88
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/implementations/test_SparseOneHotEncoder.py
import numpy as np import scipy.sparse import sklearn.datasets import sklearn.model_selection import sklearn.pipeline import sklearn.tree from sklearn.impute import SimpleImputer from sklearn.tree import DecisionTreeClassifier from autosklearn.pipeline.implementations.CategoryShift import CategoryShift from autosklear...
4,579
37.487395
88
py
auto-sklearn
auto-sklearn-master/test/test_pipeline/implementations/test_util.py
import numpy as np from autosklearn.pipeline.implementations.util import softmax import unittest class UtilTest(unittest.TestCase): def test_softmax_binary(self): df = np.array( [ -40.00643897, 34.69754581, 23.71181359, -29.8972...
1,861
29.032258
88
py
auto-sklearn
auto-sklearn-master/test/test_scripts/__init__.py
0
0
0
py
auto-sklearn
auto-sklearn-master/test/test_scripts/test_metadata_generation.py
import json import os import random import shutil import socket import subprocess import tempfile import arff import numpy as np from autosklearn.metrics import CLASSIFICATION_METRICS, REGRESSION_METRICS import unittest # Abstracted to here to make changing them easier # seems to be quite fidely with github actions...
14,119
35.675325
88
py
auto-sklearn
auto-sklearn-master/test/test_util/__init__.py
# -*- encoding: utf-8 -*- __author__ = "feurerm"
49
15.666667
25
py
auto-sklearn
auto-sklearn-master/test/test_util/example_config.yaml
--- version: 1 disable_existing_loggers: False formatters: simple: format: '[%(levelname)s] [%(asctime)s:%(name)s] %(message)s' handlers: console: class: logging.StreamHandler level: WARNING formatter: simple stream: ext://sys.stdout file_handler: class: logging.FileHandler level: DE...
1,067
19.150943
64
yaml
auto-sklearn
auto-sklearn-master/test/test_util/test_backend.py
# -*- encoding: utf-8 -*- import builtins from autosklearn.automl_common.common.utils.backend import Backend import unittest import unittest.mock class BackendModelsTest(unittest.TestCase): class BackendStub(Backend): def __init__(self): self.__class__ = Backend def setUp(self): ...
2,625
30.638554
88
py
auto-sklearn
auto-sklearn-master/test/test_util/test_common.py
# -*- encoding: utf-8 -*- import os from autosklearn.util.common import check_pid import unittest class TestUtilsCommon(unittest.TestCase): _multiprocess_can_split_ = True def test_check_pid(self): our_pid = os.getpid() exists = check_pid(our_pid) self.assertTrue(exists) ou...
488
19.375
59
py
auto-sklearn
auto-sklearn-master/test/test_util/test_dask.py
from pathlib import Path from dask.distributed import Client, LocalCluster from autosklearn.util.dask import LocalDask, UserDask import pytest @pytest.mark.parametrize("n_jobs", [1, 2]) def test_user_dask(tmp_path: Path, n_jobs: int) -> None: """ Expects ------- * A UserDask should not close the cl...
1,848
23.328947
75
py
auto-sklearn
auto-sklearn-master/test/test_util/test_data.py
from typing import Any, Dict, List, Union import warnings from itertools import chain import numpy as np import pandas as pd import sklearn.datasets from scipy.sparse import csr_matrix, spmatrix from autosklearn.constants import ( BINARY_CLASSIFICATION, CLASSIFICATION_TASKS, MULTICLASS_CLASSIFICATION, ...
20,493
28.918248
88
py
auto-sklearn
auto-sklearn-master/test/test_util/test_dependencies.py
import re import numpy as np import pkg_resources from autosklearn.util.dependencies import ( IncorrectPackageVersionError, MissingPackageError, verify_packages, ) import unittest from unittest.mock import Mock, patch @patch("pkg_resources.get_distribution") class VerifyPackagesTests(unittest.TestCase)...
3,257
28.889908
84
py
auto-sklearn
auto-sklearn-master/test/test_util/test_logging.py
import logging import logging.config import os import tempfile import yaml from autosklearn.util import logging_ import unittest class LoggingTest(unittest.TestCase): def test_setup_logger(self): # Test that setup_logger function correctly configures the logger # according to the given dictiona...
1,667
33.75
88
py
auto-sklearn
auto-sklearn-master/test/test_util/test_single_thread_client.py
import dask.distributed from distributed.utils_test import inc from autosklearn.util.single_thread_client import SingleThreadedClient import pytest def test_single_thread_client_like_dask_client(): single_thread_client = SingleThreadedClient() assert isinstance(single_thread_client, dask.distributed.Client)...
899
32.333333
70
py
auto-sklearn
auto-sklearn-master/test/test_util/test_stopwatch.py
import time from autosklearn.util.stopwatch import StopWatch def test_stopwatch_overhead() -> None: wall_start = time.time() cpu_start = time.process_time() watch = StopWatch() for i in range(1, 1000): watch.start("task_%d" % i) watch.stop("task_%d" % i) cpu_end = time.process_t...
951
22.8
54
py
auto-sklearn
auto-sklearn-master/test/test_util/test_trials_callback.py
import os import tempfile import pandas as pd from smac.callbacks import IncorporateRunResultCallback from smac.optimizer.smbo import SMBO from smac.runhistory.runhistory import RunInfo, RunValue from smac.tae.base import StatusType import autosklearn.pipeline.util as putil from autosklearn.classification import Auto...
2,623
33.986667
84
py
pipelines
pipelines-master/.cloudbuild.yaml
# Copyright 2018 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
11,200
40.029304
164
yaml
pipelines
pipelines-master/.golangci.yaml
run: timeout: 30m skip-files: - "api\\*.go$" - "backend\\api\\*.go" issues: max-same-issues: 0 linters: disable-all: true enable: # please keep this alphabetized - gocritic - gosimple - govet - ineffassign - misspell - staticcheck - stylecheck - unused linters-settings: ...
420
14.035714
49
yaml
pipelines
pipelines-master/.pre-commit-config.yaml
repos: # other fast helpful checks - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 hooks: - id: check-yaml args: [--allow-multiple-documents] - id: check-json - id: end-of-file-fixer - id: trailing-whitespace exclude: ^manifests/gcp_marketplace/test...
1,889
29.483871
87
yaml
pipelines
pipelines-master/.readthedocs.yml
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details version: 2 sphinx: configuration: docs/conf.py python: version: 3.7 install: - requirements: docs/requirements.txt
201
21.444444
75
yml
pipelines
pipelines-master/.release.cloudbuild.yaml
# Copyright 2018 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35,587
53.499234
169
yaml
pipelines
pipelines-master/CHANGELOG.md
# Changelog ## [2.0.0](https://github.com/kubeflow/pipelines/compare/1.7.0...2.0.0) (2023-06-20) ### ⚠ BREAKING CHANGES * **SDK:** SDK client v2beta1 API integration. Fixes [\#8706](https://github.com/kubeflow/pipelines/issues/8706) ([\#9112](https://github.com/kubeflow/pipelines/issues/9112)) * **sdk:** Implement ...
1,252,888
168.952387
563
md
pipelines
pipelines-master/CONTRIBUTING.md
# How to Contribute We'd love to accept your patches and contributions to this project. There are just a few small guidelines you need to follow. ## Contributor License Agreement Contributions to this project must be accompanied by a Contributor License Agreement. You (or your employer) retain the copyright to your ...
9,357
47.237113
312
md
pipelines
pipelines-master/README.md
[![Coverage Status](https://coveralls.io/repos/github/kubeflow/pipelines/badge.svg?branch=master)](https://coveralls.io/github/kubeflow/pipelines?branch=master) [![SDK Documentation Status](https://readthedocs.org/projects/kubeflow-pipelines/badge/?version=latest)](https://kubeflow-pipelines.readthedocs.io/en/stable/?b...
5,081
79.666667
497
md
pipelines
pipelines-master/RELEASE.md
# Kubeflow Pipelines Release Process <!-- This TOC is auto generated by "markdown all in one" VS Code plugin --> - [Kubeflow Pipelines Release Process](#kubeflow-pipelines-release-process) - [Schedule](#schedule) - [Release Tags and Branches](#release-tags-and-branches) - [Contributor Instructions](#contributor-...
14,320
42.528875
233
md
pipelines
pipelines-master/ROADMAP.md
# Kubeflow Pipelines Roadmap ## Kubeflow Pipelines 2022 Roadmap ### KFP v2 Design: [bit.ly/kfp-v2](https://bit.ly/kfp-v2) #### KFP v2 Goals * Enable v2 authoring Critical User Journeys * Containerized Python component * Bring-your-own container * DAG component * Finalize IR and component packaging format to ...
9,856
54.376404
555
md
pipelines
pipelines-master/SECURITY.md
# Private Security Vulnerability Reporting When reporting a vulnerability, please include a description of the issue, the steps you took to create the issue, affected versions, and, if known, mitigations for the issue. If the issue is confirmed as a vulnerability, we will open a Security Advisory. This project follows...
939
93
306
md
pipelines
pipelines-master/developer_guide.md
# ML Pipeline Development Guideline This document describes the development guideline to contribute to ML pipeline project. Please check the [main page](https://github.com/kubeflow/pipelines/blob/master/README.md) for instruction on how to deploy a ML pipeline system. ## ML pipeline deployment The Pipeline system is...
5,435
30.241379
232
md
pipelines
pipelines-master/.github/pull_request_template.md
**Description of your changes:** **Checklist:** - [ ] The title for your pull request (PR) should follow our title convention. [Learn more about the pull request title convention used in this repository](https://github.com/kubeflow/pipelines/blob/master/CONTRIBUTING.md#pull-request-title-convention). <!-- PR titl...
885
51.117647
254
md
pipelines
pipelines-master/.github/semantic.yml
# Configuration for https://github.com/zeke/semantic-pull-requests # # Kubeflow Pipelines PR title convention is documented in # https://github.com/kubeflow/pipelines/blob/master/CONTRIBUTING.md#pull-request-title-convention # Always validate the PR title, and ignore the commits. titleOnly: true # TODO: define a list...
652
22.321429
97
yml
pipelines
pipelines-master/.github/stale.yml
# Configuration for stale probot # https://probot.github.io/apps/stale/ # # Number of days of inactivity before an issue becomes stale daysUntilStale: 90 # Number of days of inactivity before a stale issue is closed daysUntilClose: 90 # Issues with these labels will never be considered stale exemptLabels: - lifecycle...
884
39.227273
77
yml
pipelines
pipelines-master/.github/ISSUE_TEMPLATE/BUG_BACKEND.md
--- name: ⚠️ Report Backend Bug about: Report a Backend bug on Kubeflow Pipelines title: "[backend] <Bug Name>" labels: kind/bug, area/backend --- ### Environment * How did you deploy Kubeflow Pipelines (KFP)? <!-- For more information, see an overview of KFP installation options: https://www.kubeflow.org/docs/pipel...
1,230
31.394737
140
md
pipelines
pipelines-master/.github/ISSUE_TEMPLATE/BUG_FRONTEND.md
--- name: ⚠️ Report Frontend Bug about: Report a Frontend bug on Kubeflow Pipelines title: "[frontend] <Bug Name>" labels: kind/bug, area/frontend --- ### Environment * How did you deploy Kubeflow Pipelines (KFP)? <!-- For more information, see an overview of KFP installation options: https://www.kubeflow.org/docs/p...
1,132
30.472222
140
md
pipelines
pipelines-master/.github/ISSUE_TEMPLATE/BUG_REPORT.md
--- name: Bug Report title: "[bug] <Bug Name>" about: Report any other issue encountered with Kubeflow Pipelines labels: kind/bug --- ### Environment <!-- Please fill in those that seem relevant. --> * How do you deploy Kubeflow Pipelines (KFP)? <!-- For more information, see an overview of KFP installation options...
1,503
30.333333
140
md
pipelines
pipelines-master/.github/ISSUE_TEMPLATE/BUG_SDK.md
--- name: ⚠️ Report SDK Bug about: Report a SDK bug on Kubeflow Pipelines title: "[sdk] <Bug Name>" labels: kind/bug, area/sdk --- ### Environment * KFP version: <!-- For more information, see an overview of KFP installation options: https://www.kubeflow.org/docs/pipelines/installation/overview/. --> * KFP SDK vers...
1,194
30.447368
140
md
pipelines
pipelines-master/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
--- name: 💡 Feature Request about: An idea to improve Kubeflow Pipelines title: "[feature] <Description>" labels: kind/feature --- ### Feature Area <!-- Uncomment the labels below which are relevant to this feature: --> <!-- /area frontend --> <!-- /area backend --> <!-- /area sdk --> <!-- /area samples --> <!-- /ar...
806
22.735294
87
md
pipelines
pipelines-master/api/README.md
# Pipeline Spec ## Generate golang proto code Generate golang proto code: ```bash make clean-go golang ``` ## Generate Python proto package Generate kfp-pipeline-spec: Update `VERSION` in [v2alpha1/python/setup.py](https://github.com/kubeflow/pipelines/blob/master/api/v2alpha1/python/setup.py) if applicable. ```...
679
20.25
141
md
pipelines
pipelines-master/api/v2alpha1/go/cachekey/cache_key.pb.go
// Copyright 2021 The Kubeflow Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
19,318
44.671395
276
go
pipelines
pipelines-master/api/v2alpha1/go/pipelinespec/pipeline_spec.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: pipeline_spec.proto package pipelinespec import ( status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.g...
329,035
42.871467
307
go
pipelines
pipelines-master/api/v2alpha1/python/generate_proto.py
# Copyright 2022 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
2,391
31.324324
80
py
pipelines
pipelines-master/api/v2alpha1/python/setup.py
# Copyright 2022 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
1,081
31.787879
74
py
pipelines
pipelines-master/api/v2alpha1/python/kfp/pipeline_spec/__init__.py
# Copyright 2020 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
585
40.857143
74
py
pipelines
pipelines-master/backend/README.md
This directory contains code for the components that comprise the Kubeflow Pipelines backend. ## Building & Testing To run all unittests for backend: ``` go test -v -cover ./backend/... ``` The API server itself can be built using: ``` go build -o /tmp/apiserver backend/src/apiserver/*.go ``` ## Code Style Backe...
2,631
34.567568
348
md
pipelines
pipelines-master/backend/api/README.md
# Kubeflow Pipelines backend API ## Before you begin Tools needed: * [docker](https://docs.docker.com/get-docker/) * [make](https://www.gnu.org/software/make/) * [java](https://www.java.com/en/download/) * [python3](https://www.python.org/downloads/) Set the environment variable `API_VERSION` to the version that yo...
4,136
46.011364
370
md
pipelines
pipelines-master/backend/api/build_kfp_server_api_python_package.sh
#!/bin/bash -e # # Copyright 2018-2021 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
2,494
31.828947
145
sh
pipelines
pipelines-master/backend/api/hack/generator.sh
#!/bin/bash # Copyright 2018 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
9,176
56
505
sh
pipelines
pipelines-master/backend/api/v1beta1/go_client/auth.pb.go
// Copyright 2020 The Kubeflow Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
16,404
39.110024
198
go