index int64 | repo_name string | branch_name string | path string | content string | import_graph string |
|---|---|---|---|---|---|
59,122 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/splittosequence.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class SplitToSequence(Base):
@staticmethod
def export_with_split_1() -> None:
data = np.arange(... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,123 | onnx/onnx | refs/heads/main | /onnx/serialization.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
__all__ = [
"registry",
]
import typing
from typing import Any, Collection, Optional, Protocol, TypeVar
import google.protobuf.message
import google.protobuf.text_format
import onnx
_Proto = Ty... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,124 | onnx/onnx | refs/heads/main | /onnx/reference/ops/aionnxml/op_svm_classifier.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0911,R0912,R0913,R0914,W0221
import numpy as np
from onnx.reference.ops.aionnxml._common_classifier import (
compute_logistic,
compute_probit,
compute_softmax_zero,
logistic,
softmax,
softmax_ze... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,125 | onnx/onnx | refs/heads/main | /onnx/reference/ops/_helpers.py | # Copyright (c) ONNX Project Contributors
# Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
from typing import Any, Dict, Union
from onnx.reference.op_run import OpRun, _split_class_name
def build_registered_operators_any_domain(
module_context: Dict[str, Any]
) -> Dict[str, Dic... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,126 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/tfidfvectorizer.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
from typing import Any
import numpy as np
import onnx
from onnx import NodeProto
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class TfIdfVectorizerHelper:
def __init__(self, **params... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,127 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_average_pool.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=W0221,R0913,R0914
from onnx.reference.ops.op_pool_common import CommonPool
class AveragePool_1(CommonPool):
def _run( # type: ignore
self,
x,
auto_pad=None,
ceil_mode=N... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,128 | onnx/onnx | refs/heads/main | /onnx/backend/test/runner/item.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import dataclasses
from typing import Any, Callable, List, Optional, Union
from onnx import ModelProto, NodeProto
# A container that hosts the test function and the associated
# test item (ModelProto)
@dataclasses.dataclass
class Tes... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,129 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/gatherelements.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
# The below GatherElements' numpy implementation is from https://stackoverflow.com/a/46204790/11767360
def gath... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,130 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/slice.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class Slice(Base):
@staticmethod
def export_slice() -> None:
node = onnx.helper.make_node(
... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,131 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/stft.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class STFT(Base):
@staticmethod
def export() -> None:
signal = np.arange(0, 128, dtype=np.floa... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,132 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_matmul.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=W0221
import numpy as np
from onnx.reference.ops._op import OpRunBinaryNum
def numpy_matmul(a, b): # type: ignore
"""
Implements a matmul product. See :func:`np.matmul`.
Handles sparse matrices.
"""
... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,133 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_mel_weight_matrix.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0913,R0914,W0221
import numpy as np
from onnx.helper import tensor_dtype_to_np_dtype
from onnx.reference.op_run import OpRun
class MelWeightMatrix(OpRun):
def _run( # type: ignore
self,
num_mel_b... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,134 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_cast.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0912,W0221
import numpy as np
from onnx.helper import (
float32_to_bfloat16,
float32_to_float8e4m3,
float32_to_float8e5m2,
tensor_dtype_to_np_dtype,
)
from onnx.numpy_helper import (
bfloat16_to_flo... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,135 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/asin.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class Asin(Base):
@staticmethod
def export() -> None:
node = onnx.helper.make_node(
... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,136 | onnx/onnx | refs/heads/main | /onnx/reference/ops/aionnxml/op_normalizer.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0913,R0914,W0221
import numpy as np
from onnx.reference.ops.aionnxml._op_run_aionnxml import OpRunAiOnnxMl
class Normalizer(OpRunAiOnnxMl):
@staticmethod
def norm_max(x): # type: ignore
"max normaliz... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,137 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/unique.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
def specify_int64(indices, inverse_indices, counts): # type: ignore
return (
np.array(indices, dty... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,138 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_gather_elements.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=W0221
import numpy as np
from onnx.reference.op_run import OpRun
def gather_numpy_2(self: np.ndarray, index: np.ndarray) -> np.ndarray:
res = []
for a, b in zip(self, index):
res.append(a[b[0]])
re... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,139 | onnx/onnx | refs/heads/main | /onnx/helper.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=C0302,R0912
import collections.abc
import numbers
import struct
from cmath import isnan
from typing import (
Any,
Callable,
Dict,
KeysView,
List,
Optional,
Sequence,
Tuple,
TypeVar,
... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,140 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/layernormalization.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
# Layer normalization's reference implementation
def _layer_normalization(X, W, B, axis=-1, epsilon=1e-5): # t... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,141 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/groupnormalization.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
# Group normalization's reference implementation
def _group_normalization(x, num_groups, scale, bias, epsilon=1... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,142 | onnx/onnx | refs/heads/main | /onnx/reference/ops/__init__.py | # Copyright (c) ONNX Project Contributors
# Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
from onnx.reference.ops._op_list import load_op
| {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,143 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_random_normal.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0913,W0221
from onnx.reference.ops._op_common_random import _CommonRandom
class RandomNormal(_CommonRandom):
def _run(self, dtype=None, mean=None, scale=None, seed=None, shape=None): # type: ignore
state ... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,144 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_hann_window.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=W0221
import numpy as np
from onnx.reference.ops._op_common_window import _CommonWindow
class HannWindow(_CommonWindow):
"""
Returns
:math:`\\omega_n = \\sin^2\\left( \\frac{\\pi n}{N-1} \\right)`
wher... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,145 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_softmax_cross_entropy_loss.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0912,R0913,R0914,W0221
import numpy as np
from onnx.reference.op_run import OpRun
def softmaxcrossentropy( # type: ignore
x, target, weight=None, reduction="mean", ignore_index=None, get_log_prob=None
):
inp... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,146 | onnx/onnx | refs/heads/main | /tools/protoc-gen-mypy.py | #!/usr/bin/env python
# Copyright (c) ONNX Project Contributors
# Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
# Taken from https://github.com/dropbox/mypy-protobuf/blob/d984389124eae6dbbb517f766b9266bb32171510/python/protoc-gen-mypy
# (Apache 2.0 License)
# with own fixes to
# - a... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,147 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_string_split.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0912,R0913,W0221
from typing import Union
import numpy as np
from onnx.reference.op_run import OpRun
_acceptable_str_dtypes = ("U", "O")
def pad_empty_string(
split_lists: Union[list, np.ndarray], padding_requi... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,148 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/max.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
from onnx.backend.test.case.utils import all_numeric_dtypes
class Max(Base):
@staticmethod
def export()... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,149 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/model/expand.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
from typing import Sequence
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.model import expect
class ExpandDynamicShape(Base):
@staticmethod
def export() -> None:
... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,150 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/erf.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import math
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class Erf(Base):
@staticmethod
def export() -> None:
node = onnx.helper.make_node(... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,151 | onnx/onnx | refs/heads/main | /onnx/reference/ops/aionnxml/_common_classifier.py | # SPDX-License-Identifier: Apache-2.0
import numpy as np
def compute_logistic(val: float) -> float:
v = 1.0 / (1.0 + np.exp(-np.abs(val)))
return (1.0 - v) if val < 0 else v # type: ignore
logistic = np.vectorize(compute_logistic)
def compute_softmax_zero(values: np.ndarray) -> np.ndarray:
"""
T... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,152 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/reducel1.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class ReduceL1(Base):
@staticmethod
def export_do_not_keepdims() -> None:
shape = [3, 2, 2]
... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,153 | onnx/onnx | refs/heads/main | /onnx/reference/ops_optimized/op_conv_optimized.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0912,R0913,R0914,R0915,R1702,W0221
import numpy as np
from onnx.reference.op_run import OpRun
def _make_ind(dim, shape):
m = np.empty(shape, dtype=np.int64)
ind = [slice(0, shape[i]) for i in range(len(shape)... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,154 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/floor.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class Floor(Base):
@staticmethod
def export() -> None:
node = onnx.helper.make_node(
... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,155 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_blackman_window.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=W0221
import numpy as np
from onnx.reference.ops._op_common_window import _CommonWindow
class BlackmanWindow(_CommonWindow):
"""
Returns
:math:`\\omega_n = 0.42 - 0.5 \\cos \\left( \\frac{2\\pi n}{N-1} \\... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,156 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/bitwisexor.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np # type: ignore
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
from onnx.numpy_helper import create_random_int
class BitwiseXor(Base):
@staticmethod
d... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,157 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/round.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class Round(Base):
@staticmethod
def export() -> None:
node = onnx.helper.make_node(
... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,158 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_random_normal_like.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0913,W0221
from onnx.helper import np_dtype_to_tensor_dtype
from onnx.reference.ops._op_common_random import _CommonRandom
class RandomNormalLike(_CommonRandom):
def _run(self, x, dtype=None, mean=None, scale=None... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,159 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_conv_integer.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0913,W0221
import numpy as np
from onnx.reference.op_run import OpRun
from onnx.reference.ops.op_conv import _conv_implementation
class ConvInteger(OpRun):
def _run( # type: ignore
self,
X,
... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,160 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/cast.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import sys
import numpy as np
import onnx
from onnx import TensorProto, helper
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
from onnx.helper import (
float32_to_float8e4m3,
float32... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,161 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/hammingwindow.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class HammingWindow(Base):
@staticmethod
def export() -> None:
# Test periodic window
n... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,162 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_lp_pool.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=W0221,R0913,R0914
import numpy as np
from onnx.reference.ops.op_pool_common import CommonPool
class LpPool(CommonPool):
def _run( # type: ignore
self,
x,
auto_pad=None,
... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,163 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/split.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class Split(Base):
@staticmethod
def export_1d_opset13() -> None:
node_input = np.array([1.0, 2... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,164 | onnx/onnx | refs/heads/main | /onnx/reference/custom_element_types.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
bfloat16 = np.dtype((np.uint16, {"bfloat16": (np.uint16, 0)}))
float8e4m3fn = np.dtype((np.uint8, {"e4m3fn": (np.uint8, 0)}))
float8e4m3fnuz = np.dtype((np.uint8, {"e4m3fnuz": (np.uint8, 0)}))
float8e5m2 = np.dtype((n... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,165 | onnx/onnx | refs/heads/main | /onnx/test/hub_test.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=protected-access
import glob
import os
import unittest
from os.path import join
import pytest
from onnx import ModelProto, hub
@pytest.mark.skipif(
"TEST_HUB" not in os.environ or not os.environ["TEST_HUB"],
... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,166 | onnx/onnx | refs/heads/main | /onnx/backend/test/case/node/shrink.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
class Shrink(Base):
@staticmethod
def export_hard_shrink() -> None:
node = onnx.helper.make_nod... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,167 | onnx/onnx | refs/heads/main | /onnx/reference/ops/op_gru.py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0913,R0914,W0221,W0613
import numpy as np
from onnx.reference.op_run import OpRun
class CommonGRU(OpRun):
def __init__(self, onnx_node, run_params): # type: ignore
OpRun.__init__(self, onnx_node, run_par... | {"/onnx/backend/test/case/node/sign.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/backend/test/case/node/dft.py": ["/onnx/__init__.py", "/onnx/backend/test/case/base.py", "/onnx/backend/test/case/node/__init__.py"], "/onnx/parser.py": ["/onnx/__init__.... |
59,171 | neelparekh/ExcitingNBAGames | refs/heads/master | /test_polling.py | from format_utils import *
def to_NBAAPI_format(d):
game={
'hTeam': {
'triCode': d['home_name'],
'score': d['home_score'],
},
'vTeam': {
'triCode': d['away_name'],
'score': d['away_score'],
},
'clock': d['clock'],
'peri... | {"/test_polling.py": ["/format_utils.py"], "/clock.py": ["/app.py"], "/twilio_connectors.py": ["/settings.py"], "/process_NBA_games.py": ["/format_utils.py", "/test_polling.py"], "/app.py": ["/settings.py", "/twilio_connectors.py", "/process_NBA_games.py"]} |
59,172 | neelparekh/ExcitingNBAGames | refs/heads/master | /clock.py | from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.triggers.cron import CronTrigger
from app import update_users
import pytz
scheduler = BackgroundScheduler()
scheduler.add_job(update_users, CronTrigger.from_crontab('* 11-23 * * *'), timezone=pytz.timezone('US/Pacific'))
# scheduler.add... | {"/test_polling.py": ["/format_utils.py"], "/clock.py": ["/app.py"], "/twilio_connectors.py": ["/settings.py"], "/process_NBA_games.py": ["/format_utils.py", "/test_polling.py"], "/app.py": ["/settings.py", "/twilio_connectors.py", "/process_NBA_games.py"]} |
59,173 | neelparekh/ExcitingNBAGames | refs/heads/master | /twilio_connectors.py | # twilio imports
from twilio.rest import Client
from twilio.request_validator import RequestValidator
# external dependencies
from typing import Dict, Tuple, List
from flask import abort, current_app, request
from functools import wraps
# custom packages
import settings
def send_SMS(data: Dict, phone_number: str):
... | {"/test_polling.py": ["/format_utils.py"], "/clock.py": ["/app.py"], "/twilio_connectors.py": ["/settings.py"], "/process_NBA_games.py": ["/format_utils.py", "/test_polling.py"], "/app.py": ["/settings.py", "/twilio_connectors.py", "/process_NBA_games.py"]} |
59,174 | neelparekh/ExcitingNBAGames | refs/heads/master | /process_NBA_games.py | import requests
import datetime
from format_utils import *
from typing import List, Dict, Tuple
from test_polling import *
def request_NBA_scoreboard() -> List[Dict]:
'''
Get all daily NBA game data.
Returns
-------
scoreboard: List[Dict] (json)
'''
try:
NBA_BASE='https://dat... | {"/test_polling.py": ["/format_utils.py"], "/clock.py": ["/app.py"], "/twilio_connectors.py": ["/settings.py"], "/process_NBA_games.py": ["/format_utils.py", "/test_polling.py"], "/app.py": ["/settings.py", "/twilio_connectors.py", "/process_NBA_games.py"]} |
59,175 | neelparekh/ExcitingNBAGames | refs/heads/master | /format_utils.py | import datetime
from typing import List, Dict, Tuple
def format_clock(t) -> str:
if t == '': # e.g. halftime or end of quarter/game
t = '00:00'
if len(t.split(':')) == 1: # e.g. 2.6 seconds remaining
t = f"00:{int(t.split('.')[0]):02}"
return t
def format_datetime(t) -> datetime.datetime:
... | {"/test_polling.py": ["/format_utils.py"], "/clock.py": ["/app.py"], "/twilio_connectors.py": ["/settings.py"], "/process_NBA_games.py": ["/format_utils.py", "/test_polling.py"], "/app.py": ["/settings.py", "/twilio_connectors.py", "/process_NBA_games.py"]} |
59,176 | neelparekh/ExcitingNBAGames | refs/heads/master | /settings.py | from dotenv import load_dotenv
import os
load_dotenv()
account_sid = os.getenv("TWILIO_ACCOUNT_SID")
auth_token = os.getenv("TWILIO_AUTH_TOKEN")
service_sid = os.getenv("TWILIO_SERVICE_ID")
twilio_number = os.getenv("TWILIO_PHONE_NUMBER")
ENDPOINT = os.getenv("DB_ENDPOINT")
PORT = os.getenv("DB_P... | {"/test_polling.py": ["/format_utils.py"], "/clock.py": ["/app.py"], "/twilio_connectors.py": ["/settings.py"], "/process_NBA_games.py": ["/format_utils.py", "/test_polling.py"], "/app.py": ["/settings.py", "/twilio_connectors.py", "/process_NBA_games.py"]} |
59,177 | neelparekh/ExcitingNBAGames | refs/heads/master | /app.py | # flask imports
from flask import Flask, render_template, request, make_response, jsonify, redirect, Blueprint, url_for, flash, abort
from flask_bootstrap import Bootstrap
from flask_login import UserMixin, LoginManager, login_user, logout_user, login_required, current_user
# external dependencies
import os
import re
... | {"/test_polling.py": ["/format_utils.py"], "/clock.py": ["/app.py"], "/twilio_connectors.py": ["/settings.py"], "/process_NBA_games.py": ["/format_utils.py", "/test_polling.py"], "/app.py": ["/settings.py", "/twilio_connectors.py", "/process_NBA_games.py"]} |
59,186 | enborra/turing-camera-timelapse | refs/heads/master | /app/core/__init__.py | from .core_service import CoreService
| {"/app/core/__init__.py": ["/app/core/core_service.py"]} |
59,187 | enborra/turing-camera-timelapse | refs/heads/master | /docs/giftest.py | # Requires imageio - pip install imageio
# Requires numpy - pip install numpy
import os
import imageio
# photo_dir = './frames/'
summary_year = 2018
summary_month = 6
# summary_day = 2
# summary_hour = 24
summary_day = 3
summary_hour = 2
photo_dir = '/var/lib/turing/turing-camera-timelapse/photos/%s/%s/%s/%s' % (s... | {"/app/core/__init__.py": ["/app/core/core_service.py"]} |
59,188 | enborra/turing-camera-timelapse | refs/heads/master | /docs/timetest.py | from datetime import datetime
import calendar
import time
while True:
now = datetime.utcnow()
unixtime = calendar.timegm(now.utctimetuple())
minstamp = unixtime - (now.second)
print('Current timestamp: %s' % unixtime)
print('Current timestamp on the minute: %s' % minstamp)
print... | {"/app/core/__init__.py": ["/app/core/core_service.py"]} |
59,189 | enborra/turing-camera-timelapse | refs/heads/master | /app/core/core_service.py | import base64
import calendar
from io import StringIO
from datetime import datetime, timedelta
import errno
import io
import json
import os
import signal
import threading
import time
import imageio
from PIL import Image
import paho.mqtt.client as mqtt
# try:
# from picamera import PiCamera
# except Exception:
# ... | {"/app/core/__init__.py": ["/app/core/core_service.py"]} |
59,190 | enborra/turing-camera-timelapse | refs/heads/master | /app/boot.py | import sys
from core import CoreService
c = CoreService()
try:
print("[CAMERA-TIMELAPSE] Booting.")
c.start()
except KeyboardInterrupt:
print("[CAMERA-TIMELAPSE] Shutting down.")
c.stop()
try:
sys.stdout.close()
except:
pass
try:
sys.stderr.close()
except:... | {"/app/core/__init__.py": ["/app/core/core_service.py"]} |
59,199 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /plot_mer_ris.py | """
Used to create combined MER/RIS figures, where we plot the MER on the x axis, and the RIS
on the y axis, with each dataset/experiment being a single point.
"""
import argparse
import itertools
from pathlib import Path
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
plt.style.use('seaborn-whi... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,200 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /confidence_utility_calculation.py | import argparse
from collections import OrderedDict
from pathlib import Path
import pandas as pd
import numpy as np
from tabulate import tabulate
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("--input", required=True,
help="A dir containing output from interv... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,201 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /generate_figures.py | """
Creates figures for a specific metric from a directory containing subdirs of result csv files.
Will aggregate all the results for every dataset, and plot its mean
value along with its std across experiments.
Will also create a collection of latex tables and corresponding csv output.
Used to plot the output from t... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,202 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /moa_experiments.py | """
Runs a number of experiments using MOA meta-learners.
The user provides an input which contains a number of arff files for regression, and a MOA
EvaluatePrequentialRegression(IntervalRegressionPerformanceEvaluator) task is run on each one.
The output is one csv file per dataset, per experiment repeat.
Usage: pyth... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,203 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /computational_measures.py | """
Used to create the computational measures for a single method. We create a csv/tex file with
the total runtime and final model size for every dataset for the method, and provide aggregate
metrics.
"""
import argparse
from pathlib import Path
import json
import pandas as pd
from tabulate import tabulate
def parse... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,204 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /evaluation_functions.py | import sys
import pickle
from collections import defaultdict
from time import perf_counter
import numpy as np
from tqdm import trange
from scipy.stats import norm
# TODO: Since these break the "y_pred is a column vector convention", is there
# any point in using them as sklearn metrics?
# Maybe it's better to break ... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,205 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /parameter_sweep.py | #!/usr/bin/env python
"""
Simple python script to sweep over one or two parameters for our experiments.
"""
import argparse
from subprocess import run
from pathlib import Path
import numpy as np
from joblib import Parallel, delayed
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("--... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,206 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /adjusted_utility.py | import argparse
from pathlib import Path
import json
import logging
import numpy as np
import pandas as pd
from tabulate import tabulate
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("--input", required=True, help="Input directory, should contain utility.csv file"
... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,207 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /generate_violin_plots.py | """
Script to create violin plots for quantile loss and utility measurements
"""
import argparse
from pathlib import Path
import seaborn as sns
import pandas as pd
from pylab import rcParams
large_text = 16
small_text = 14
params = {
'axes.labelsize': large_text,
'font.size': small_text,
'legend.fontsize... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,208 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /generate_boxplots.py | """
Script to create boxplots for quantile loss and utility measurements
"""
import argparse
from pathlib import Path
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Polygon
import pandas as pd
from pylab import rcParams
plt.style.use('seaborn-whitegrid')
large_text = 16
small_text ... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,209 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /skgarden_experiments.py | """
Runs a number of experiments using skgarden MondrianForest.
The user provides a datadir which contains a number of arff files for regression, and a
prequential regression task is run on each one.
The output is one csv file per dataset, per experiment repeat.
Will also output two additional files per experiment:
<n... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,210 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /interval_metrics.py | """
Parses the prediction files from MOA and skgarden output
and creates normalized metrics for the intervals.
"""
import argparse
import json
from pathlib import Path
from collections import OrderedDict, defaultdict
import re
import sys
import logging as log
import pandas as pd
import numpy as np
from natsort import ... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,211 | Sandy4321/uncertain-trees-experiments | refs/heads/master | /measurement_aggregations.py | """
Creates aggregations over datasets from the per method/dataset results
created in generate_figures.py in the create_tables method.
Provided a directory created with the above method will create
additional output in the same directory with informative measures
over all datasets for which we have results.
"""
import... | {"/moa_experiments.py": ["/parameter_sweep.py"], "/skgarden_experiments.py": ["/evaluation_functions.py"], "/interval_metrics.py": ["/generate_figures.py"]} |
59,216 | redcartel/emojihex | refs/heads/master | /src/util.py | import logging
logger = logging.Logger("logger")
logger.addHandler(logging.FileHandler("/tmp/pgame.log"))
def log(message):
logger.info(message)
def y_x_to_row_col(y, x):
row = y // 4
col = (x + 4) // 8 if row % 2 else x // 8
return row, col
def y_x_to_offsets(y, x):
row = y // 4
yoff = y % ... | {"/main.py": ["/src/util.py", "/src/state.py"], "/src/controls.py": ["/src/state.py"], "/src/display.py": ["/src/state.py", "/src/util.py", "/src/model.py", "/src/resources.py"]} |
59,217 | redcartel/emojihex | refs/heads/master | /src/resources.py | import curses
CONS = lambda x : None # used as empty object
def init(stdscr):
CONS.C_BLACK = 16
curses.init_color(CONS.C_BLACK, 0, 0, 0)
CONS.C_WHITE = 17
curses.init_color(CONS.C_WHITE, 1000, 1000, 1000) | {"/main.py": ["/src/util.py", "/src/state.py"], "/src/controls.py": ["/src/state.py"], "/src/display.py": ["/src/state.py", "/src/util.py", "/src/model.py", "/src/resources.py"]} |
59,218 | redcartel/emojihex | refs/heads/master | /src/model.py | from random import randrange
GAME = {
"maprows": 24,
"mapcols": 40,
"turn": 0
}
MAP = [[]]
ENTITIES = []
{y:{x:[] for x in range(GAME["mapcols"])} for y in range(GAME["maprows"])}
def init_entities():
global ENTITIES
cols = GAME["mapcols"]
rows = GAME["maprows"]
ENTITIES = [[[] for x in ... | {"/main.py": ["/src/util.py", "/src/state.py"], "/src/controls.py": ["/src/state.py"], "/src/display.py": ["/src/state.py", "/src/util.py", "/src/model.py", "/src/resources.py"]} |
59,219 | redcartel/emojihex | refs/heads/master | /src/state.py | import os
STATE = {
"window_x": 0,
"window_y": 0,
"select_x": 5,
"select_y": 5,
"mode": 1
}
def move_param(pname, y, x, mode="abs"):
if mode == "abs":
STATE[pname + "_x"], STATE[pname + "_y"] = x, y
elif mode == "rel":
STATE[pname + "_x"] += x
STATE[pname + "_y"] +=... | {"/main.py": ["/src/util.py", "/src/state.py"], "/src/controls.py": ["/src/state.py"], "/src/display.py": ["/src/state.py", "/src/util.py", "/src/model.py", "/src/resources.py"]} |
59,220 | redcartel/emojihex | refs/heads/master | /main.py | import curses
from random import randrange
from src import controls
from src import display
from src import model
from src import resources
from src.util import logger
from src.state import get_param
import datetime
def main(stdscr):
logger.info(f"\nmain() at {datetime.datetime.now().isoformat()}")
controls.in... | {"/main.py": ["/src/util.py", "/src/state.py"], "/src/controls.py": ["/src/state.py"], "/src/display.py": ["/src/state.py", "/src/util.py", "/src/model.py", "/src/resources.py"]} |
59,221 | redcartel/emojihex | refs/heads/master | /src/controls.py | import curses
from src.state import move_param, get_param, set_param
STDSCR = curses.initscr()
def init(stdscr):
global STDSCR
STDSCR = stdscr
def dispatch_input():
key = STDSCR.getch()
if key == ord('q'):
set_param("mode", -1)
elif key == curses.KEY_UP:
move_param("window", -1, 0... | {"/main.py": ["/src/util.py", "/src/state.py"], "/src/controls.py": ["/src/state.py"], "/src/display.py": ["/src/state.py", "/src/util.py", "/src/model.py", "/src/resources.py"]} |
59,222 | redcartel/emojihex | refs/heads/master | /src/display.py | import curses
from random import randrange
from collections import OrderedDict
from src.state import get_param
from src.util import y_x_to_offsets, y_x_to_row_col
from src.model import get_square, get_entities, GAME
from src.resources import CONS
STDSCR = curses.initscr()
TERRAIN = OrderedDict()
TERRAIN['OCEAN'] =... | {"/main.py": ["/src/util.py", "/src/state.py"], "/src/controls.py": ["/src/state.py"], "/src/display.py": ["/src/state.py", "/src/util.py", "/src/model.py", "/src/resources.py"]} |
59,223 | AdamJacoby/Hopf | refs/heads/master | /HopfConstructions_Functions.py | from itertools import product
import scipy.sparse as sps
import numpy as np
#Constructs the twist isomorphism from A\ot B to B\otA
#Columns correspond to input rows to outputs
def Twist_old(dimA,dimB):
dim=dimA*dimB
out = sps.csr_matrix((dim,dim),dtype=np.int8)
for i,j in product(range(0,dimA),range(0,dimB... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,224 | AdamJacoby/Hopf | refs/heads/master | /Example_CyclicGroup.py | from ExampleGroup_Functions import *
from HopfClass import HopfAlgebra
import numpy as np
import scipy.sparse as sps
from itertools import product
#Constructs the multiplication matrix of the cyclic group of order dim in csr sparse format
def CyclicGroup_Mult_Matrix(dim):
mult = np.zeros((dim,dim**2),dtype=co... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,225 | AdamJacoby/Hopf | refs/heads/master | /HopfConstructions.py | import scipy.sparse as sps
import sympy as sym
import numpy as np
from HopfConstructions_Functions import *
from HopfClass import *
from Frobenius_Tools import HigmanTrace
#Given two spaces returns their tensor product with as much structure as possible
def Tensor_Product(A,B):
_type = Tensor_Type(A,B)
nam... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,226 | AdamJacoby/Hopf | refs/heads/master | /ExampleGroup_Functions.py | import numpy as np
from scipy.sparse import csr_matrix
from itertools import product
from HopfClass import HopfAlgebra
import sympy.combinatorics as comb
#Constructs the integral of a group algebra
def Group_Integral(dim):
out = np.zeros((dim),dtype=complex)
for i in range(0,dim):
out[i]=1
return out
#Constructs... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,227 | AdamJacoby/Hopf | refs/heads/master | /Example_Bpq.py | #This code constructs the following Hopf algebra
#as an algebra it is KG for G = {sigma,tau,a,b|simga^p=tau^p=a^q=b^q=1[sigma,b]=[a,tau]=[ba]=[sigma,tau]=1,sigma*a=a^r*sigma,tau*b=b^r*tau}
import numpy as np
import scipy.sparse as sps
from HopfClass import HopfAlgebra
from HopfConstructions import Tensor_Product... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,228 | AdamJacoby/Hopf | refs/heads/master | /ElementClass.py | from HopfClass import *
###########################################################################################################
#Creates a new class of objects as elements of vector spaces/algebras/modules/bialgebras/Hopf algebras
#The primarry advantage to elements is that they can have names making them much e... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,229 | AdamJacoby/Hopf | refs/heads/master | /Example_Symmetric_Group.py | from sympy.combinatorics.named_groups import SymmetricGroup
from ExampleGroup_Functions import PermutationGroupInfo, MakeGroupAlgebra
def Symmetric_Group(n):
temp = PermutationGroupInfo(SymmetricGroup(n))
S = MakeGroupAlgebra('S_'+str(n),temp['element_names'],temp['mult'],temp['antipode'])
return S
| {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,230 | AdamJacoby/Hopf | refs/heads/master | /Frobenius_Tools.py | from itertools import product
import scipy.sparse as sps
import sympy as sp
import numpy as np
from HopfConstructions_Functions import Left_Action_Matrix, Right_Action_Matrix, CreateBasisVectors, Tensor_Mult
from math import floor
#Conversts s scipymatrix to sympy then converts the charicteristic poly in sympy and out... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,231 | AdamJacoby/Hopf | refs/heads/master | /Example_Taft.py | from HopfClass import *
import numpy as np
from itertools import product
import scipy.sparse as sps
#Creates the name vector for the Taft algebra
#g is the name of the group like
#x is the name of the g,1 primitive element
#basis is given by g^0x^0,g^2,...,g^1x^1,g^2x^1,...,g^{n-2}x^{n-1},g^{n-1}x^{n-1}
def Taf... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,232 | AdamJacoby/Hopf | refs/heads/master | /HopfClass.py | # packages
from HopfClass_Functions import *
from scipy import linalg
import scipy.sparse as sps
import numpy as np
import os
import pickle
##################################################################################################################
#Create the global variable storing algebras
###################... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,233 | AdamJacoby/Hopf | refs/heads/master | /Algebra_Tools.py | import sympy as sp
import scipy.sparse as sps
from HopfClass import *
import numpy as np
import sympy as sym
from Frobenius_Tools import HigmanTrace
from HopfConstructions_Functions import CreateBasisVectors
#Given U the change of basis matrix twiost the structure matrixes to be wirth respect to the new basis
#U(origi... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,234 | AdamJacoby/Hopf | refs/heads/master | /Example_Matrix_Algebra.py | import numpy as np
from scipy.sparse import csr_matrix
from itertools import product
from HopfClass import Algebra
def MartixAlgebra_ElementNames(n):
ele_names=[]
for i in range(0,n):
for j in range(0,n):
ele_names.append('T_'+str(i)+','+str(j))
return ele_names
def MatrixAlgebra_Mult_... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,235 | AdamJacoby/Hopf | refs/heads/master | /Example_DihedralGroup.py | from ExampleGroup_Functions import *
from HopfClass import HopfAlgebra
import numpy as np
import scipy.sparse as sps
from itertools import product
#Cronstrust the dihedrqal group {g^n=1,x^2=1,gx=xg^{-1}}
# g^ix^j corresponds to the basis vector with a 1 in position i*2+j
def DihedralGroup_Mult_Matrix(n):
dim... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,236 | AdamJacoby/Hopf | refs/heads/master | /Example_GeneralizedDihedralGroup.py | #Constructs the group algrebra of the group G={g,x|g^q=x^p=1,xg=g^rx}
#p and q should be prime where p should divide q-1 and r should be an element of \ZZ_q of order p
from ExampleGroup_Functions import *
from HopfClass import HopfAlgebra
import numpy as np
import scipy.sparse as sps
from itertools import produ... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,237 | AdamJacoby/Hopf | refs/heads/master | /Frobenius_Divisibility_Algorithm.py | import sympy as sp
import numpy as np
import scipy.sparse as sps
import scipy.sparse.linalg as sps_linalg
from HopfConstructions_Functions import Tensor_Mult, Left_Action_Matrix
from math import floor
from Frobenius_Tools import *
from Algebra_Tools import Center
#Computes the matrix for the image of the casimir squar... | {"/Example_CyclicGroup.py": ["/ExampleGroup_Functions.py", "/HopfClass.py"], "/HopfConstructions.py": ["/HopfConstructions_Functions.py", "/HopfClass.py", "/Frobenius_Tools.py"], "/ExampleGroup_Functions.py": ["/HopfClass.py"], "/Example_Bpq.py": ["/HopfClass.py", "/HopfConstructions.py", "/Example_GeneralizedDihedralG... |
59,238 | sureshsaravananbabu/cpu | refs/heads/master | /Home/views.py | from django.shortcuts import render
from django.views import View
from django.http import HttpResponse
import psutil
sendmail=0
class Home(View):
template_name = 'Home.html'
def get(self, request, *args, **kwargs):
print("hello")
return render(request, self.template_name)
def emailfield... | {"/Home/data.py": ["/Home/views.py"]} |
59,239 | sureshsaravananbabu/cpu | refs/heads/master | /Home/data.py | import asyncio
from channels.generic.websocket import AsyncJsonWebsocketConsumer
from django.conf import settings
from .views import return_email
from django.core.mail import send_mail
import psutil
import json
class SendData(AsyncJsonWebsocketConsumer):
async def connect(self):
await self.accept()
... | {"/Home/data.py": ["/Home/views.py"]} |
59,240 | sureshsaravananbabu/cpu | refs/heads/master | /cpu/routing.py | from channels.routing import ProtocolTypeRouter,URLRouter
from channels.auth import AuthMiddlewareStack
from Home import data
from django.urls import path,include
websocket_urlPattern=[
path('ws/cpu/',data.SendData),
]
application=ProtocolTypeRouter({
"websocket": AuthMiddlewareStack(URLRouter(websocket_urlPa... | {"/Home/data.py": ["/Home/views.py"]} |
59,311 | MareShae/BattleSnake | refs/heads/main | /Agent.py | from tAssist import *
from VEnv import VEnv
Main = 'genome.txt'
Genome = ReadGenome(Main)
class Agent:
def __init__(self, name, envShape, body):
# AGENT DETAILS
self.Name = name
self.width, self.height = envShape
self.body, self.head = body, body[0]
self.Network = NeuralNetw... | {"/Agent.py": ["/tAssist.py", "/VEnv.py"], "/server.py": ["/tAssist.py", "/VEnv.py", "/Agent.py"], "/VEnv.py": ["/tAssist.py"], "/tAssist.py": ["/NeuralFunctions.py", "/NeuralEvolution.py"], "/NeuralEvolution.py": ["/NeuralFunctions.py"]} |
59,312 | MareShae/BattleSnake | refs/heads/main | /server.py | # MAIN
import os
import json
import bottle
from bottle import HTTPResponse
# SUB
from tAssist import *
from VEnv import VEnv
from Agent import Agent
Name = 'Jinx'
Author = 'MareShae'
SnakeAgent = None
LogFile = 'Log.txt'
def DList2List(DList: list):
List = []
for Dict in DList:
List += [[Dict['y'], D... | {"/Agent.py": ["/tAssist.py", "/VEnv.py"], "/server.py": ["/tAssist.py", "/VEnv.py", "/Agent.py"], "/VEnv.py": ["/tAssist.py"], "/tAssist.py": ["/NeuralFunctions.py", "/NeuralEvolution.py"], "/NeuralEvolution.py": ["/NeuralFunctions.py"]} |
59,313 | MareShae/BattleSnake | refs/heads/main | /VEnv.py | from tAssist import *
class VEnv:
def __init__(self, shape):
# BOARD INFO
self.envRecord = [] # Record the state of the environment
self.width, self.height = shape # Size of the environment
self.env = numpy.zeros(shape=[self.height, self.width]) # Constructing the environment
... | {"/Agent.py": ["/tAssist.py", "/VEnv.py"], "/server.py": ["/tAssist.py", "/VEnv.py", "/Agent.py"], "/VEnv.py": ["/tAssist.py"], "/tAssist.py": ["/NeuralFunctions.py", "/NeuralEvolution.py"], "/NeuralEvolution.py": ["/NeuralFunctions.py"]} |
59,314 | MareShae/BattleSnake | refs/heads/main | /tAssist.py | import cv2
import json
import math
import time
from NeuralFunctions import *
from NeuralEvolution import NeuralNetwork
# ANGLES
def Sin(val):
val = math.radians(val)
return Decimal(math.sin(val))
def Cos(val):
val = math.radians(val)
return Decimal(math.cos(val))
def RotMat(theta, mat):
cosO = ... | {"/Agent.py": ["/tAssist.py", "/VEnv.py"], "/server.py": ["/tAssist.py", "/VEnv.py", "/Agent.py"], "/VEnv.py": ["/tAssist.py"], "/tAssist.py": ["/NeuralFunctions.py", "/NeuralEvolution.py"], "/NeuralEvolution.py": ["/NeuralFunctions.py"]} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.