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 |
|---|---|---|---|---|---|---|
training-operator | training-operator-master/sdk/python/test/test_kubeflow_org_v1_scheduling_policy.py | # coding: utf-8
"""
Kubeflow Training SDK
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.5.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
from kubeflow.training.models import *
from ... | 1,758 | 28.813559 | 122 | py |
training-operator | training-operator-master/sdk/python/test/test_kubeflow_org_v1_tf_job.py | # coding: utf-8
"""
Kubeflow Training SDK
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.5.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
from kubeflow.training.models import *
from ... | 3,724 | 37.010204 | 108 | py |
training-operator | training-operator-master/sdk/python/test/test_kubeflow_org_v1_tf_job_list.py | # coding: utf-8
"""
Kubeflow Training SDK
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.5.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
from kubeflow.training.models import *
from ... | 7,164 | 45.830065 | 116 | py |
training-operator | training-operator-master/sdk/python/test/test_kubeflow_org_v1_tf_job_spec.py | # coding: utf-8
"""
Kubeflow Training SDK
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.5.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
from kubeflow.training.models import *
from ... | 3,436 | 36.358696 | 109 | py |
training-operator | training-operator-master/sdk/python/test/test_kubeflow_org_v1_xg_boost_job.py | # coding: utf-8
"""
Kubeflow Training SDK
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.5.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
from kubeflow.training.models import *
from ... | 3,699 | 37.541667 | 111 | py |
training-operator | training-operator-master/sdk/python/test/test_kubeflow_org_v1_xg_boost_job_list.py | # coding: utf-8
"""
Kubeflow Training SDK
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.5.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
from kubeflow.training.models import *
from ... | 7,047 | 46.302013 | 120 | py |
training-operator | training-operator-master/sdk/python/test/test_kubeflow_org_v1_xg_boost_job_spec.py | # coding: utf-8
"""
Kubeflow Training SDK
Python SDK for Kubeflow Training # noqa: E501
The version of the OpenAPI document: v1.5.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
from kubeflow.training.models import *
from ... | 3,409 | 36.888889 | 120 | py |
training-operator | training-operator-master/sdk/python/test/e2e/__init__.py | 0 | 0 | 0 | py | |
training-operator | training-operator-master/sdk/python/test/e2e/constants.py | # Copyright 2023 kubeflow.org.
#
# 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 writing,... | 1,004 | 40.875 | 96 | py |
training-operator | training-operator-master/sdk/python/test/e2e/test_e2e_mpijob.py | # Copyright 2021 kubeflow.org.
#
# 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 writing,... | 6,838 | 32.689655 | 117 | py |
training-operator | training-operator-master/sdk/python/test/e2e/test_e2e_mxjob.py | # Copyright 2021 kubeflow.org.
#
# 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 writing,... | 8,176 | 35.342222 | 131 | py |
training-operator | training-operator-master/sdk/python/test/e2e/test_e2e_paddlejob.py | # Copyright 2022 kubeflow.org.
#
# 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 writing,... | 5,227 | 33.853333 | 120 | py |
training-operator | training-operator-master/sdk/python/test/e2e/test_e2e_pytorchjob.py | # Copyright 2021 kubeflow.org.
#
# 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 writing,... | 6,033 | 34.28655 | 130 | py |
training-operator | training-operator-master/sdk/python/test/e2e/test_e2e_tfjob.py | # Copyright 2021 kubeflow.org.
#
# 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 writing,... | 5,188 | 33.364238 | 115 | py |
training-operator | training-operator-master/sdk/python/test/e2e/test_e2e_xgboostjob.py | # Copyright 2021 kubeflow.org.
#
# 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 writing,... | 6,232 | 34.414773 | 130 | py |
training-operator | training-operator-master/sdk/python/test/e2e/utils.py | import logging
import time
from kubeflow.training import TrainingClient
from kubeflow.training.constants import constants
from test.e2e.constants import TEST_GANG_SCHEDULER_NAME_SCHEDULER_PLUGINS
from test.e2e.constants import DEFAULT_SCHEDULER_PLUGINS_NAME
from test.e2e.constants import TEST_GANG_SCHEDULER_NAME_VOLCA... | 3,180 | 37.792683 | 104 | py |
training-operator | training-operator-master/test_job/README.md | ## Test Job Controller
This is a Test Job Controller example. As you can see, we have job crd definition under `apis/test_job/v1`.
[code-generator](https://github.com/kubernetes/code-generator) generate deepcopy, clientset and other libraries.
`controler.v1/test_job/test_job_controller` defines a struct `TestJobCont... | 879 | 29.344828 | 165 | md |
training-operator | training-operator-master/test_job/apis/test_job/v1/constants.go | // Copyright 2019 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... | 1,230 | 35.205882 | 76 | go |
training-operator | training-operator-master/test_job/apis/test_job/v1/defaults.go | // Copyright 2019 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... | 3,378 | 27.880342 | 108 | go |
training-operator | training-operator-master/test_job/apis/test_job/v1/doc.go | // Copyright 2019 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... | 776 | 34.318182 | 75 | go |
training-operator | training-operator-master/test_job/apis/test_job/v1/openapi_generated.go | //go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Copyright 2023 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/l... | 7,090 | 40.467836 | 313 | go |
training-operator | training-operator-master/test_job/apis/test_job/v1/register.go | // 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 agr... | 2,545 | 32.946667 | 86 | go |
training-operator | training-operator-master/test_job/apis/test_job/v1/types.go | // Copyright 2019 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... | 2,126 | 29.385714 | 90 | go |
training-operator | training-operator-master/test_job/apis/test_job/v1/zz_generated.deepcopy.go | //go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Copyright 2023 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/l... | 3,513 | 27.569106 | 114 | go |
training-operator | training-operator-master/test_job/apis/test_job/v1/zz_generated.defaults.go | //go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Copyright 2023 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/l... | 1,486 | 32.044444 | 122 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/clientset.go | // Copyright 2023 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... | 3,866 | 31.225 | 128 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/doc.go | // Copyright 2023 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... | 723 | 37.105263 | 75 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/fake/clientset_generated.go | // Copyright 2023 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... | 2,863 | 33.095238 | 114 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/fake/doc.go | // Copyright 2023 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... | 723 | 37.105263 | 75 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/fake/register.go | // Copyright 2023 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... | 1,884 | 33.272727 | 103 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/scheme/doc.go | // Copyright 2023 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... | 739 | 37.947368 | 77 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/scheme/register.go | // Copyright 2023 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... | 1,940 | 34.290909 | 103 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/typed/test_job/v1/doc.go | // Copyright 2023 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... | 720 | 36.947368 | 75 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/typed/test_job/v1/generated_expansion.go | // Copyright 2023 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... | 692 | 33.65 | 75 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/typed/test_job/v1/test_job_client.go | // Copyright 2023 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... | 3,139 | 28.622642 | 93 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/typed/test_job/v1/testjob.go | // Copyright 2023 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... | 6,654 | 33.304124 | 175 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/typed/test_job/v1/fake/doc.go | // Copyright 2023 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... | 716 | 36.736842 | 75 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/typed/test_job/v1/fake/fake_test_job_client.go | // Copyright 2023 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... | 1,204 | 29.897436 | 97 | go |
training-operator | training-operator-master/test_job/client/clientset/versioned/typed/test_job/v1/fake/fake_testjob.go | // Copyright 2023 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... | 5,332 | 36.822695 | 182 | go |
training-operator | training-operator-master/test_job/client/informers/externalversions/factory.go | // Copyright 2023 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... | 6,482 | 35.217877 | 194 | go |
training-operator | training-operator-master/test_job/client/informers/externalversions/generic.go | // Copyright 2023 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... | 2,019 | 32.114754 | 117 | go |
training-operator | training-operator-master/test_job/client/informers/externalversions/internalinterfaces/factory_interfaces.go | // Copyright 2023 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... | 1,474 | 36.820513 | 98 | go |
training-operator | training-operator-master/test_job/client/informers/externalversions/test_job/interface.go | // Copyright 2023 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... | 1,632 | 35.288889 | 140 | go |
training-operator | training-operator-master/test_job/client/informers/externalversions/test_job/v1/interface.go | // Copyright 2023 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... | 1,590 | 35.159091 | 140 | go |
training-operator | training-operator-master/test_job/client/informers/externalversions/test_job/v1/testjob.go | // Copyright 2023 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... | 3,667 | 40.213483 | 216 | go |
training-operator | training-operator-master/test_job/client/listers/test_job/v1/expansion_generated.go | // Copyright 2023 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... | 928 | 34.730769 | 75 | go |
training-operator | training-operator-master/test_job/client/listers/test_job/v1/testjob.go | // Copyright 2023 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... | 3,398 | 33.683673 | 95 | go |
training-operator | training-operator-master/test_job/reconciler.v1/test_job/test_job_reconciler.go | package test_job
import (
"context"
kubeflowv1 "github.com/kubeflow/training-operator/pkg/apis/kubeflow.org/v1"
commonreconciler "github.com/kubeflow/training-operator/pkg/reconciler.v1/common"
v1 "github.com/kubeflow/training-operator/test_job/apis/test_job/v1"
"github.com/kubeflow/training-operator/test_job/cl... | 4,553 | 26.6 | 146 | go |
training-operator | training-operator-master/test_job/test_util/v1/const.go | // 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 agr... | 864 | 25.212121 | 75 | go |
training-operator | training-operator-master/test_job/test_util/v1/pod.go | // 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 agr... | 3,275 | 33.125 | 183 | go |
training-operator | training-operator-master/test_job/test_util/v1/service.go | // 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 agr... | 2,178 | 33.587302 | 130 | go |
training-operator | training-operator-master/test_job/test_util/v1/test_job_util.go | // 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 agr... | 2,068 | 25.87013 | 84 | go |
training-operator | training-operator-master/test_job/test_util/v1/util.go | // 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 agr... | 2,408 | 29.1125 | 103 | go |
null | MultiCam-Simulation-main/README.md | # MultiCam-Simulation · [](https://github.com/your/your-project/blob/master/LICENSE)
* simulate the imaging process for multiple cameras in 3D space
* adjust internal and external coefficients freely
* simulate lens distortion... | 1,331 | 35 | 210 | md |
null | MultiCam-Simulation-main/main.py | # Author: Xuechao Zhang
# Date: March 13th, 2022
# Description: 主入口
from src.virtual_cam import *
from src.xbox_controller import *
if __name__ == "__main__":
env = VirtualCamEnv("config/cameras.yaml",
"img/grid_with_tags.jpg",
AprilTag_detection=True)
while ... | 576 | 29.368421 | 93 | py |
null | MultiCam-Simulation-main/config/cameras.yaml | # camera_name:
# resolution: [height, weight]
# intrinsic parameters: [fx, fy, cx, cy]
# extrinsic parameters: [[euler], dx, dy, dz]
# distortion: [k1, k2, k3] # dont care about [p1, p2]
# 1080*1920 pixels stand for 2160*3840mm ground
topview:
resolution: [1080, 1920]
intrinsic parameters: [1250, 1250, 96... | 847 | 32.92 | 72 | yaml |
null | MultiCam-Simulation-main/src/apriltag_utils.py | # Author: Xuechao Zhang
# Date: March 13th, 2022
# Description: 调用 AprilTag 检测器进行识别定位
import cv2
import numpy as np
from pupil_apriltags import Detector
class ApriltagDetector:
def __init__(self, camera_params):
self.at_detector = Detector(families='tag36h11',
nthreads=8,
... | 1,971 | 36.923077 | 109 | py |
null | MultiCam-Simulation-main/src/distortion_para_fit.py | import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
def distortion_func_2para(x, k1, k2):
return 1+k1*x**2+k2*x**4
def distortion_func_3para(x, k1, k2, k3):
return 1+k1*x**2+k2*x**4+k3*x**6
def distortion_func_6para(x, k1, k2, k3, k4, k5, k6):
return x*(1+k1*x**2+k2*x*... | 1,639 | 31.156863 | 98 | py |
null | MultiCam-Simulation-main/src/virtual_cam.py | # Author: Xuechao Zhang
# Date: Feb 13th, 2022
# Description: 虚拟相机:给定地面纹理和相机位姿,输出图像
import cv2
import numpy as np
import random
import math
import copy
import time
import yaml
import sys
from src.distortion_para_fit import *
class VirtualCamEnv:
def __init__(self, config_file_path, background_path, AprilTag_detec... | 14,858 | 36.334171 | 121 | py |
null | MultiCam-Simulation-main/src/xbox_controller.py | # Author: Xuechao Zhang
# Date: March 22th, 2021
# Description: 获取Xbox手柄的输入
import os
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
import pygame
import time
import cv2
def joyinit():
pygame.init()
pygame.joystick.init()
if pygame.joystick.get_count():
joystick = pygame.joystick.Joystick(0)
... | 4,034 | 29.568182 | 85 | py |
auto-sklearn | auto-sklearn-master/.codecov.yml | #see https://github.com/codecov/support/wiki/Codecov-Yaml
codecov:
require_ci_to_pass: yes
coverage:
# 2 = xx.xx%, 0 = xx%
precision: 2
# https://docs.codecov.com/docs/commit-status
status:
# We want our total main project to always remain above 84% coverage, a
# drop of 0.20% is allowed. It shoul... | 1,158 | 23.659574 | 83 | yml |
auto-sklearn | auto-sklearn-master/.pre-commit-config.yaml | # If you see me, please update my `rev` field using the provided links
# Click the repo and update to latest tags.
# If things break on update, raise an issue
repos:
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort imports autosklearn
files: autosklearn/... | 1,382 | 22.844828 | 74 | yaml |
auto-sklearn | auto-sklearn-master/CONTRIBUTING.md | # Contributing to auto-sklearn
Thanks for checking out the contribution guide!
We included a [quick overview](#pull-request-overview) at the end for anyone familiar with open-source contribution or familiar with auto-sklearn and simply wants to see our workflow.
If you're new to contributing then hopefully this guide ... | 28,668 | 60.653763 | 349 | md |
auto-sklearn | auto-sklearn-master/README.md | # auto-sklearn
**auto-sklearn** is an automated machine learning toolkit and a drop-in replacement for a [scikit-learn](https://scikit-learn.org) estimator.
Find the documentation **[here](https://automl.github.io/auto-sklearn/)**. Quick links:
* [Installation Guide](https://automl.github.io/auto-sklearn/master/ins... | 2,439 | 37.730159 | 141 | md |
auto-sklearn | auto-sklearn-master/setup.py | import os
import sys
from setuptools import find_packages, setup
HERE = os.path.abspath(os.path.dirname(__file__))
# Check if Auto-sklearn *could* run on the given system
if os.name != "posix":
raise ValueError(
"Detected unsupported operating system: %s. Please check "
"the compability informati... | 2,927 | 27.990099 | 82 | py |
auto-sklearn | auto-sklearn-master/.github/dependabot.yml | version: 2
updates:
# This will check for updates to github actions every day
# https://docs.github.com/en/enterprise-server@3.4/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: ... | 328 | 31.9 | 149 | yml |
auto-sklearn | auto-sklearn-master/.github/ISSUE_TEMPLATE/bug_report.md | ---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
## Describe the bug ##
Please describe the bug you're experiencing is precise as possible.
## To Reproduce ##
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
... | 844 | 23.852941 | 189 | md |
auto-sklearn | auto-sklearn-master/.github/ISSUE_TEMPLATE/question.md | ---
name: Question
about: Ask a question!
title: "[Question] My Question?"
labels: ''
assignees: ''
---
# Short Question Description
A clear single sentence question we can try to help with?
With some extra context to follow it up. This way the question is clear for both you and us without it being lost in the parag... | 1,465 | 47.866667 | 278 | md |
auto-sklearn | auto-sklearn-master/.github/workflows/citation_cff.yml | name: cffconvert
on:
push:
paths:
- CITATION.cff
jobs:
validate:
name: "validate"
runs-on: ubuntu-latest
steps:
- name: Check out a copy of the repository
uses: actions/checkout@v3
- name: Check whether the citation metadata from CITATION.cff is valid
uses: citat... | 410 | 19.55 | 76 | yml |
auto-sklearn | auto-sklearn-master/.github/workflows/dist.yml | name: dist-check
on:
# Manually triggerable in github
workflow_dispatch:
# When a push occurs on either of these branches
push:
branches:
- master
- development
# When a push occurs on a PR that targets these branches
pull_request:
branches:
- master
- development
jobs:
... | 1,240 | 20.396552 | 69 | yml |
auto-sklearn | auto-sklearn-master/.github/workflows/docker-publish.yml | #https://help.github.com/en/actions/language-and-framework-guides/publishing-docker-images#publishing-images-to-github-packages
name: Publish Docker image
on:
push:
branches:
- master
- development
- docker_workflow
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
DOCKERHUB_I... | 2,849 | 29.978261 | 143 | yml |
auto-sklearn | auto-sklearn-master/.github/workflows/docs.yml | name: Docs
on:
# Manually triggerable in github
workflow_dispatch:
# When a push occurs on either of these branches
push:
branches:
- master
- development
# When a push occurs on a PR that targets these branches
pull_request:
branches:
- master
- development
jobs:
buil... | 1,970 | 25.28 | 120 | yml |
auto-sklearn | auto-sklearn-master/.github/workflows/generate-baselines.yml | # Not currently in use
name: Generate Baselines
on:
workflow_dispatch:
inputs:
dummy:
description: 'Place holder'
required: false
default: 'Dummy argument'
env:
AUTOMLBENCHMARK_REPO: 'openml/automlbenchmark'
AUTOMLBENCHMARK_REF: 'master'
GITHUB_URL: 'https://github.com'
GIT... | 3,857 | 31.694915 | 143 | yml |
auto-sklearn | auto-sklearn-master/.github/workflows/pre-commit-update.yml | name: Pre-commit auto-update
on:
# every day at midnight
schedule:
- cron: "0 0 * * *"
# on demand
workflow_dispatch:
jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: browniebroke/pre-commit-autoupdate-action... | 648 | 23.037037 | 70 | yml |
auto-sklearn | auto-sklearn-master/.github/workflows/pre-commit.yaml | name: pre-commit
on:
# Manually triggerable in github
workflow_dispatch:
# When a push occurs on either of these branches
push:
branches:
- master
- development
# When a push occurs on a PR that targets these branches
pull_request:
branches:
- master
- development
jobs:
... | 733 | 17.35 | 58 | yaml |
auto-sklearn | auto-sklearn-master/.github/workflows/pytest.yml | name: Tests
on:
# Manually triggerable in github
workflow_dispatch:
# When a push occurs on either of these branches
push:
branches:
- master
- development
# When a push occurs on a PR that targets these branches
pull_request:
branches:
- master
- development
schedule:
... | 4,255 | 26.10828 | 125 | yml |
auto-sklearn | auto-sklearn-master/.github/workflows/regressions.yml | # Not currently in use
name: Regression Tests
on:
workflow_dispatch:
inputs:
dummy:
description: 'Place holder'
required: false
default: 'Dummy argument'
pull_request:
types: [labeled]
env:
AUTOMLBENCHMARK_REPO: 'openml/automlbenchmark'
AUTOMLBENCHMARK_REF: 'master'
G... | 14,627 | 37.596306 | 152 | yml |
auto-sklearn | auto-sklearn-master/.github/workflows/stale.yaml | name: 'Close stale issues'
on:
schedule:
- cron: '0 7 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5
with:
days-before-stale: 60
days-before-close: 7
stale-issue-label: 'stale'
only-issue-labels: 'Answered,Feedback-Requ... | 749 | 26.777778 | 84 | yaml |
auto-sklearn | auto-sklearn-master/.github/workflows/benchmarking-files/config.yaml | ---
frameworks:
definition_file: # this allows to add custom framework definitions (in {user}/frameworks.yaml) on top of the default ones.
- '{root}/resources/frameworks.yaml'
- '{user}/frameworks.yaml'
benchmarks:
definition_dir: # this allows to add custom benchmark definitions (under {user}/benchmar... | 611 | 33 | 127 | yaml |
auto-sklearn | auto-sklearn-master/.github/workflows/benchmarking-files/constraints.yaml | ---
10fold10min:
folds: 10
max_runtime_seconds: 600
| 56 | 10.4 | 26 | yaml |
auto-sklearn | auto-sklearn-master/.github/workflows/benchmarking-files/frameworks.yaml | ---
# This file is unused but just marks the structure of what is created
# in github action runners.
# For generating baselines we require no additional files
# For creating regression tests we dynamically create this file
| 224 | 36.5 | 69 | yaml |
auto-sklearn | auto-sklearn-master/.github/workflows/benchmarking-files/regressions-util.py | from typing import Tuple
import os
import sys
import argparse
import numpy as np
import pandas as pd
CLASSIFICATION_METRICS = ["acc", "auc", "balacc", "logloss"]
REGRESSION_METRICS = ["mae", "r2", "rmse"]
METRICS = CLASSIFICATION_METRICS + REGRESSION_METRICS
def _get_mean_results_across_folds(df) -> pd.DataFrame:
... | 18,392 | 34.784047 | 132 | py |
auto-sklearn | auto-sklearn-master/.github/workflows/benchmarking-files/benchmarks/classification.yaml | ---
# binary, 1000 instances, 23 features, 2 labels
- name: credit-g
openml_task_id: 31
# multi-label, 1080 instances, 857 features, 9 labels
- name: cnae-9
openml_task_id: 9981
# binary, highly imbalanced, 2109 instances, 22 features, 2 labels
- name: kc1
openml_task_id: 3917
| 287 | 19.571429 | 66 | yaml |
auto-sklearn | auto-sklearn-master/.github/workflows/benchmarking-files/benchmarks/regression.yaml | ---
# Regression, 303 instances, 14 features, 1 target
- name: cholesterol
openml_task_id: 2295
# Regression, 345 instances, 6 features, 1 target
- name: liver-disorders
openml_task_id: 52948
# Regression, 1460 instances, 80 features, 1 target
- name: house-prices-nominal
openml_task_id: 359951
| 305 | 20.857143 | 51 | yaml |
auto-sklearn | auto-sklearn-master/autosklearn/__init__.py | # -*- encoding: utf-8 -*-
import os
import sys
import pkg_resources
from autosklearn.__version__ import __version__ # noqa (imported but unused)
from autosklearn.util import dependencies
requirements = pkg_resources.resource_string("autosklearn", "requirements.txt")
requirements = requirements.decode("utf-8")
depe... | 826 | 29.62963 | 87 | py |
auto-sklearn | auto-sklearn-master/autosklearn/__version__.py | """Version information."""
# The following line *must* be the last in the module, exactly as formatted:
__version__ = "0.15.0"
| 128 | 24.8 | 76 | py |
auto-sklearn | auto-sklearn-master/autosklearn/askl_typing.py | from typing import Dict, Union
FEAT_TYPE_TYPE = Dict[Union[str, int], str]
| 76 | 18.25 | 43 | py |
auto-sklearn | auto-sklearn-master/autosklearn/automl.py | from __future__ import annotations
from typing import (
Any,
Callable,
Dict,
Iterable,
Mapping,
Optional,
Sequence,
Tuple,
Type,
)
import copy
import io
import itertools
import json
import logging.handlers
import multiprocessing
import os
import platform
import sys
import time
impo... | 97,072 | 38.980643 | 106 | py |
auto-sklearn | auto-sklearn-master/autosklearn/classification.py | from autosklearn.estimators import AutoSklearnClassifier # noqa (imported but unused)
| 87 | 43 | 86 | py |
auto-sklearn | auto-sklearn-master/autosklearn/constants.py | # -*- encoding: utf-8 -*-
BINARY_CLASSIFICATION = 1
MULTICLASS_CLASSIFICATION = 2
MULTILABEL_CLASSIFICATION = 3
REGRESSION = 4
MULTIOUTPUT_REGRESSION = 5
REGRESSION_TASKS = [REGRESSION, MULTIOUTPUT_REGRESSION]
CLASSIFICATION_TASKS = [
BINARY_CLASSIFICATION,
MULTICLASS_CLASSIFICATION,
MULTILABEL_CLASSIFICA... | 950 | 27.818182 | 59 | py |
auto-sklearn | auto-sklearn-master/autosklearn/estimators.py | # -*- encoding: utf-8 -*-
from __future__ import annotations
from typing import (
Any,
Dict,
Iterable,
List,
Mapping,
Optional,
Sequence,
Tuple,
Type,
Union,
)
import warnings
import dask.distributed
import joblib
import numpy as np
import pandas as pd
from ConfigSpace.configu... | 66,493 | 40.172755 | 148 | py |
auto-sklearn | auto-sklearn-master/autosklearn/regression.py | from autosklearn.estimators import AutoSklearnRegressor # noqa (imported but unused)
| 86 | 42.5 | 85 | py |
auto-sklearn | auto-sklearn-master/autosklearn/smbo.py | import typing
from typing import Dict, List, Optional, Sequence
import copy
import json
import logging
import multiprocessing
import os
import time
import traceback
import warnings
import dask.distributed
import pynisher
from smac.callbacks import IncorporateRunResultCallback
from smac.facade.smac_ac_facade import SM... | 26,864 | 36.004132 | 88 | py |
auto-sklearn | auto-sklearn-master/autosklearn/data/__init__.py | # -*- encoding: utf-8 -*-
| 26 | 12.5 | 25 | py |
auto-sklearn | auto-sklearn-master/autosklearn/data/abstract_data_manager.py | import abc
from typing import Any, Dict, Union
import numpy as np
import scipy.sparse
from autosklearn.pipeline.components.data_preprocessing.feature_type import (
FeatTypeSplit,
)
class AbstractDataManager:
__metaclass__ = abc.ABCMeta
def __init__(self, name: str):
self._data = dict() # type... | 1,974 | 26.054795 | 77 | py |
auto-sklearn | auto-sklearn-master/autosklearn/data/feature_validator.py | from typing import Dict, List, Optional, Tuple, Union, cast
import logging
import warnings
import numpy as np
import pandas as pd
from pandas.api.types import is_numeric_dtype, is_sparse
from scipy.sparse import csr_matrix, spmatrix
from sklearn.base import BaseEstimator
from sklearn.exceptions import NotFittedError
... | 17,533 | 40.353774 | 88 | py |
auto-sklearn | auto-sklearn-master/autosklearn/data/target_validator.py | from typing import List, Optional, Type, Union, cast
import logging
import warnings
import numpy as np
import pandas as pd
import sklearn.utils
from pandas.api.types import is_numeric_dtype
from pandas.core.dtypes.base import ExtensionDtype
from scipy.sparse import spmatrix
from sklearn.base import BaseEstimator
from... | 16,164 | 35.489842 | 88 | py |
auto-sklearn | auto-sklearn-master/autosklearn/data/validation.py | # -*- encoding: utf-8 -*-
from typing import List, Optional, Tuple, Union
import logging
import numpy as np
import pandas as pd
from scipy.sparse import spmatrix
from sklearn.base import BaseEstimator
from sklearn.exceptions import NotFittedError
from autosklearn.data.feature_validator import SUPPORTED_FEAT_TYPES, F... | 7,425 | 34.701923 | 88 | py |
auto-sklearn | auto-sklearn-master/autosklearn/data/xy_data_manager.py | # -*- encoding: utf-8 -*-
from typing import Dict, Optional, Union, cast
import numpy as np
import pandas as pd
from scipy import sparse
from autosklearn.constants import (
BINARY_CLASSIFICATION,
MULTICLASS_CLASSIFICATION,
MULTILABEL_CLASSIFICATION,
MULTIOUTPUT_REGRESSION,
REGRESSION,
)
from autos... | 2,657 | 30.642857 | 86 | py |
auto-sklearn | auto-sklearn-master/autosklearn/ensemble_building/__init__.py | from autosklearn.ensemble_building.builder import EnsembleBuilder
from autosklearn.ensemble_building.manager import EnsembleBuilderManager
from autosklearn.ensemble_building.run import Run
__all__ = ["EnsembleBuilder", "EnsembleBuilderManager", "Run"]
| 253 | 41.333333 | 72 | py |