code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
# Simply Block [![Docker Image CI](https://github.com/simplyblock-io/ultra/actions/workflows/docker-image.yml/badge.svg?branch=main)](https://github.com/simplyblock-io/ultra/actions/workflows/docker-image.yml) ## Web Api app Please see this document [WebApp/README.md](../WebApp/README.md) ## Command Line Interfa...
/sbcli-3.11.zip/sbcli-3.11/README.md
0.514644
0.738528
README.md
pypi
from typing import Mapping from management.models.base_model import BaseModel class PortStat(BaseModel): attributes = { "uuid": {"type": str, 'default': ""}, "node_id": {"type": str, 'default': ""}, "date": {"type": int, 'default': 0}, "bytes_sent": {"type": int, 'default': 0}, ...
/sbcli-3.11.zip/sbcli-3.11/management/models/device_stat.py
0.573081
0.305931
device_stat.py
pypi
import pprint import json from typing import Mapping import fdb class BaseModel(object): def __init__(self): self._attribute_map = { "id": {"type": str, "default": ""}, "name": {"type": str, "default": self.__class__.__name__}, "object_type": {"type": str, "default": ...
/sbcli-3.11.zip/sbcli-3.11/management/models/base_model.py
0.548432
0.228038
base_model.py
pypi
from datetime import datetime from typing import List from management.models.base_model import BaseModel from management.models.iface import IFace from management.models.nvme_device import NVMeDevice class LVol(BaseModel): attributes = { "lvol_name": {"type": str, 'default': ""}, "size": {"type...
/sbcli-3.11.zip/sbcli-3.11/management/models/storage_node.py
0.716318
0.266181
storage_node.py
pypi
# SBcoyote: An Extensible Python-Based Reaction Editor and Viewer. ## Introduction SBcoyote, initially called PyRKViewer or Coyote, is a cross-platform visualization tool for drawing reaction networks written with the [wxPython](https://www.wxpython.org/) framework. It can draw reactants, products, reactions, and co...
/sbcoyote-1.4.4.tar.gz/sbcoyote-1.4.4/README.md
0.887692
0.668718
README.md
pypi
from collections import defaultdict from dataclasses import dataclass, fields, is_dataclass from typing import ( Any, Callable, DefaultDict, Dict, List, Optional, Set, Tuple, Type, Union, ) import wx from rkviewer.canvas.geometry import Vec2 # -------------------------------------...
/sbcoyote-1.4.4.tar.gz/sbcoyote-1.4.4/rkviewer/events.py
0.896686
0.599339
events.py
pypi
from dataclasses import dataclass from enum import Enum from rkviewer.config import Color import wx import abc import copy from typing import Any, List, Optional, Set, Tuple from .canvas.geometry import Vec2 from .canvas.data import Compartment, Node, Reaction, ModifierTipStyle, CompositeShape class IController(abc.A...
/sbcoyote-1.4.4.tar.gz/sbcoyote-1.4.4/rkviewer/mvc.py
0.896614
0.340184
mvc.py
pypi
import wx import abc import math from typing import Collection, Generic, List, Optional, Set, TypeVar, Callable from .geometry import Rect, Vec2, rotate_unit from .data import Node, Reaction def get_nodes_by_idx(nodes: List[Node], indices: Collection[int]): """Simple helper that maps the given list of indices to ...
/sbcoyote-1.4.4.tar.gz/sbcoyote-1.4.4/rkviewer/canvas/utils.py
0.868841
0.558146
utils.py
pypi
# pylint: disable=maybe-no-member from sortedcontainers.sortedlist import SortedKeyList from rkviewer.canvas.elements import CanvasElement, CompartmentElt, NodeElement from rkviewer.canvas.state import cstate from rkviewer.config import Color import wx import abc from typing import Callable, List, cast from .geometry i...
/sbcoyote-1.4.4.tar.gz/sbcoyote-1.4.4/rkviewer/canvas/overlays.py
0.783864
0.406302
overlays.py
pypi
import abc from dataclasses import dataclass # pylint: disable=maybe-no-member from enum import Enum, auto from typing import List, Optional import wx from rkviewer.canvas.data import Node from rkviewer.canvas.geometry import Vec2 from rkviewer.events import (DidAddCompartmentEvent, DidAddNodeEvent, ...
/sbcoyote-1.4.4.tar.gz/sbcoyote-1.4.4/rkviewer/plugin/classes.py
0.818628
0.243879
classes.py
pypi
from rkviewer.utils import opacity_mul from rkviewer.canvas.state import ArrowTip import wx from typing import List, Tuple from rkviewer.plugin import api from rkviewer.plugin.classes import PluginMetadata, WindowedPlugin, PluginCategory from rkviewer.plugin.api import Vec2 class DesignerWindow(wx.Window): """ ...
/sbcoyote-1.4.4.tar.gz/sbcoyote-1.4.4/rkviewer_plugins/arrow_designer.py
0.923113
0.303887
arrow_designer.py
pypi
import wx from rkviewer.plugin.classes import PluginMetadata, WindowedPlugin, PluginCategory from rkviewer.plugin import api from rkviewer.plugin.api import Vec2 import numpy as np import math class AlignCircle(WindowedPlugin): metadata = PluginMetadata( name='AlignCircle', author='Evan Yip and Ji...
/sbcoyote-1.4.4.tar.gz/sbcoyote-1.4.4/rkviewer_plugins/align_circle.py
0.778776
0.331647
align_circle.py
pypi
[![Build Status](https://travis-ci.org/tfgm/sbedecoder.svg?branch=master)](https://travis-ci.org/tfgm/sbedecoder) Python based Simple Binary Encoding (SBE) decoder ================================================= Overview -------- sbedecoder is a simple python package for parsing SBE encoded data. sbedecoder dyn...
/sbedecoder-0.1.10.tar.gz/sbedecoder-0.1.10/README.md
0.420005
0.857768
README.md
pypi
from datetime import datetime def mdp3time(t): dt = datetime.fromtimestamp(t // 1000000000) s = dt.strftime('%m/%d/%Y %H:%M:%S') s += '.' + str(int(t % 1000000000)).zfill(9) return s def adjustField(field, secdef): if field.semantic_type == 'UTCTimestamp': return '{} ({})'.format(mdp3time(...
/sbedecoder-0.1.10.tar.gz/sbedecoder-0.1.10/mdp/prettyprinter.py
0.525856
0.266512
prettyprinter.py
pypi
from struct import unpack_from from .orderbook import OrderBook class PacketProcessor(object): def __init__(self, mdp_parser, secdef, security_id_filter=None): self.mdp_parser = mdp_parser self.secdef = secdef self.security_id_filter = security_id_filter self.stream_sequence_number...
/sbedecoder-0.1.10.tar.gz/sbedecoder-0.1.10/mdp/orderbook/packet_processor.py
0.618204
0.169578
packet_processor.py
pypi
import numpy as np import h5py import argparse import os import plotting def main(filename, save_location, iter_min, iter_max): # Path to run-info file fp_in = filename # Path to output directory fp_out = save_location + '/' # Range to plot iteration_range = [iter_min, iter_max] # Plot h...
/sbelt-1.0.1-py3-none-any.whl/plots/plot_maker.py
0.61878
0.224842
plot_maker.py
pypi
import logging import requests from .exceptions import ApiError, BadCredentialsException class Client(object): """Performs requests to the SBER API.""" URL = 'https://3dsec.sberbank.ru/payment/rest/' def __init__(self, username: str = None, password: str = None, token: str = None): """ ...
/sber-payments-0.3.0.tar.gz/sber-payments-0.3.0/src/sber_payments/client.py
0.506836
0.365683
client.py
pypi
import datetime from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.x509.oid import NameOID def gen...
/sberbank_async_cryptography-1.0.0-py3-none-any.whl/sb_async_cryptography/keys_generation.py
0.600423
0.158923
keys_generation.py
pypi
from binascii import a2b_base64 from Cryptodome.Hash import SHA512 from Cryptodome.PublicKey import RSA from Cryptodome.Signature import PKCS1_v1_5 as PKCS from Cryptodome.Util.asn1 import DerSequence def get_public_key_from_file(file_name): with open(file_name) as f: pem = f.read() lines = pem.repla...
/sberbank_async_cryptography-1.0.0-py3-none-any.whl/sb_async_cryptography/signature.py
0.749637
0.196961
signature.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union, cast import attr from ..models.search_products_response_facets_item_options_item import SearchProductsResponseFacetsItemOptionsItem from ..types import UNSET, Unset T = TypeVar("T", bound="SearchProductsResponseFacetsItem") ...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/search_products_response_facets_item.py
0.83471
0.166608
search_products_response_facets_item.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="StoreRetailerAppearance") @attr.s(auto_attribs=True) class StoreRetailerAppearance: """ Attributes: background_color (Union[Unset, str]): ...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/store_retailer_appearance.py
0.833155
0.284651
store_retailer_appearance.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="StorePaymentMethodsStoresItemPaymentMethod") @attr.s(auto_attribs=True) class StorePaymentMethodsStoresItemPaymentMethod: """ Attributes: ...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/store_payment_methods_stores_item_payment_method.py
0.850717
0.167287
store_payment_methods_stores_item_payment_method.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="StoreCity") @attr.s(auto_attribs=True) class StoreCity: """ Attributes: id (Union[Unset, int]): name (Union[Unset, str]): ...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/store_city.py
0.810666
0.18881
store_city.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="SearchProductsResponseRootCategoriesOptionsItem") @attr.s(auto_attribs=True) class SearchProductsResponseRootCategoriesOptionsItem: """ Attributes...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/search_products_response_root_categories_options_item.py
0.856317
0.174287
search_products_response_root_categories_options_item.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union, cast import attr from ..models.store_retailer_appearance import StoreRetailerAppearance from ..types import UNSET, Unset T = TypeVar("T", bound="StoreRetailer") @attr.s(auto_attribs=True) class StoreRetailer: """ A...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/store_retailer.py
0.770465
0.183667
store_retailer.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union, cast import datetime import attr from dateutil.parser import isoparse from ..types import UNSET, Unset T = TypeVar("T", bound="StoreLicensesItem") @attr.s(auto_attribs=True) class StoreLicensesItem: """ Attributes...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/store_licenses_item.py
0.838283
0.154376
store_licenses_item.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="StoreStoreShippingMethodsItemShippingMethod") @attr.s(auto_attribs=True) class StoreStoreShippingMethodsItemShippingMethod: """ Attributes: ...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/store_store_shipping_methods_item_shipping_method.py
0.853882
0.17006
store_store_shipping_methods_item_shipping_method.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="StoreLocation") @attr.s(auto_attribs=True) class StoreLocation: """ Attributes: id (Union[Unset, int]): full_address (Union[Unset,...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/store_location.py
0.777975
0.193948
store_location.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union, cast import attr from ..types import UNSET, Unset T = TypeVar("T", bound="StoreStoreZonesItem") @attr.s(auto_attribs=True) class StoreStoreZonesItem: """ Attributes: id (Union[Unset, int]): name (Un...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/store_store_zones_item.py
0.812384
0.205555
store_store_zones_item.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="SearchProductsResponseFacetsItemOptionsItem") @attr.s(auto_attribs=True) class SearchProductsResponseFacetsItemOptionsItem: """ Attributes: ...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/search_products_response_facets_item_options_item.py
0.870968
0.223504
search_products_response_facets_item_options_item.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union, cast import attr from ..types import UNSET, Unset T = TypeVar("T", bound="SearchProductsResponseProductsItem") @attr.s(auto_attribs=True) class SearchProductsResponseProductsItem: """ Attributes: id (Union[...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/search_products_response_products_item.py
0.745676
0.178293
search_products_response_products_item.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="StoreTenantsItem") @attr.s(auto_attribs=True) class StoreTenantsItem: """ Attributes: id (Union[Unset, str]): name (Union[Unset, s...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/store_tenants_item.py
0.834474
0.156362
store_tenants_item.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="SearchProductsResponseSortItem") @attr.s(auto_attribs=True) class SearchProductsResponseSortItem: """ Attributes: key (Union[Unset, str]):...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/search_products_response_sort_item.py
0.863435
0.192862
search_products_response_sort_item.py
pypi
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union, cast import attr from ..types import UNSET, Unset T = TypeVar("T", bound="StoreStoreScheduleTemplateDeliveryTimesItem") @attr.s(auto_attribs=True) class StoreStoreScheduleTemplateDeliveryTimesItem: """ Attributes: ...
/sbermarket_api-0.0.3-py3-none-any.whl/sbermarket_api/models/store_store_schedule_template_delivery_times_item.py
0.815783
0.150029
store_store_schedule_template_delivery_times_item.py
pypi
# `sbi`: simulation-based inference `sbi`: A Python toolbox for simulation-based inference. ![using sbi](static/infer_demo.gif) Inference can be run in a single line of code: ```python posterior = infer(simulator, prior, method='SNPE', num_simulations=1000) ``` - To learn about the general motivation behind simula...
/sbi-0.21.0.tar.gz/sbi-0.21.0/docs/docs/index.md
0.608361
0.993136
index.md
pypi
# Efficient handling of invalid simulation outputs For many simulators, the output of the simulator can be ill-defined or it can have non-sensical values. For example, in neuroscience models, if a specific parameter set does not produce a spike, features such as the spike shape can not be computed. When using `sbi`, s...
/sbi-0.21.0.tar.gz/sbi-0.21.0/docs/docs/tutorial/08_restriction_estimator.md
0.669096
0.991472
08_restriction_estimator.md
pypi
# SBI with trial-based data and models of mixed data types Trial-based data often has the property that the individual trials can be assumed to be independent and identically distributed (iid), i.e., they are assumed to have the same underlying model parameters. For example, in a decision-making experiments, the exper...
/sbi-0.21.0.tar.gz/sbi-0.21.0/docs/docs/tutorial/14_multi-trial-data-and-mixed-data-types.md
0.852353
0.987711
14_multi-trial-data-and-mixed-data-types.md
pypi
# Crafting summary statistics Many simulators produce outputs that are high-dimesional. For example, a simulator might generate a time series or an image. In a [previous tutorial](https://www.mackelab.org/sbi/tutorial/05_embedding_net/), we discussed how a neural networks can be used to learn summary statistics from s...
/sbi-0.21.0.tar.gz/sbi-0.21.0/docs/docs/tutorial/10_crafting_summary_statistics.md
0.746324
0.992154
10_crafting_summary_statistics.md
pypi
# Active subspaces for sensitivity analysis A standard method to analyse dynamical systems such as models of neural dynamics is to use a sensitivity analysis. We can use the posterior obtained with `sbi`, to perform such analyses. ## Main syntax ```python from sbi.analysis import ActiveSubspace sensitivity = Activ...
/sbi-0.21.0.tar.gz/sbi-0.21.0/docs/docs/tutorial/09_sensitivity_analysis.md
0.810066
0.985186
09_sensitivity_analysis.md
pypi
# Inference on Hodgkin-Huxley model: tutorial In this tutorial, we use `sbi` to do inference on a [Hodgkin-Huxley model](https://en.wikipedia.org/wiki/Hodgkin%E2%80%93Huxley_model) from neuroscience (Hodgkin and Huxley, 1952). We will learn two parameters ($\bar g_{Na}$,$\bar g_K$) based on a current-clamp recording, ...
/sbi-0.21.0.tar.gz/sbi-0.21.0/docs/docs/examples/00_HH_simulator.md
0.779616
0.984246
00_HH_simulator.md
pypi
[![PyPI version](https://img.shields.io/pypi/v/sbibm)](https://pypi.org/project/sbibm/) ![Python versions](https://img.shields.io/pypi/pyversions/sbibm) [![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/sbi-benchmark/sbibm/blob/master/CONTRIBUTI...
/sbibm-1.1.0.tar.gz/sbibm-1.1.0/README.md
0.811003
0.988142
README.md
pypi
from functools import partial import distrax import haiku as hk import jax import matplotlib.pyplot as plt import optax import seaborn as sns from jax import numpy as jnp from jax import random from surjectors import ( Chain, MaskedAutoregressive, Permutation, TransformedDistribution, ) from surjectors...
/sbijax-0.0.12.tar.gz/sbijax-0.0.12/examples/bivariate_gaussian_snl.py
0.732592
0.592843
bivariate_gaussian_snl.py
pypi
import distrax import haiku as hk import jax.nn import matplotlib.pyplot as plt import optax import seaborn as sns from jax import numpy as jnp from jax import random from surjectors import Chain, TransformedDistribution from surjectors.bijectors.masked_autoregressive import MaskedAutoregressive from surjectors.bijecto...
/sbijax-0.0.12.tar.gz/sbijax-0.0.12/examples/bivariate_gaussian_snp.py
0.637482
0.469095
bivariate_gaussian_snp.py
pypi
import argparse from functools import partial import distrax import haiku as hk import jax import matplotlib.pyplot as plt import numpy as np import optax import pandas as pd import seaborn as sns from jax import numpy as jnp from jax import random from jax import scipy as jsp from jax import vmap from surjectors impo...
/sbijax-0.0.12.tar.gz/sbijax-0.0.12/examples/slcp_snl_masked_autoregressive.py
0.538983
0.489381
slcp_snl_masked_autoregressive.py
pypi
import argparse from functools import partial import distrax import haiku as hk import jax import matplotlib.pyplot as plt import numpy as np import optax import pandas as pd import seaborn as sns from jax import numpy as jnp from jax import random from jax import scipy as jsp from surjectors import ( AffineMasked...
/sbijax-0.0.12.tar.gz/sbijax-0.0.12/examples/slcp_snl_masked_coupling.py
0.593138
0.424412
slcp_snl_masked_coupling.py
pypi
from functools import partial import distrax import haiku as hk import jax import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from jax import numpy as jnp from jax import random from jax import scipy as jsp from jax import vmap from sbijax import SMCABC from sbijax.mcmc impor...
/sbijax-0.0.12.tar.gz/sbijax-0.0.12/examples/slcp_smcabc.py
0.692018
0.727189
slcp_smcabc.py
pypi
from typing import Callable, Dict, Type, TypeVar from pydantic import ValidationError from bin.commands.command import Command from bin.commands.errors import CommandFailedError, CommandNotFound, CommandParseError from bin.env.errors import EnvProvisionError from bin.process.process import Process ExitCode = int T =...
/sbin-1.0.0.tar.gz/sbin-1.0.0/bin/error_handler.py
0.700997
0.221098
error_handler.py
pypi
from typing import Any, Dict, List, Optional, Union from pydantic import root_validator, validator from bin.commands.command import Command from bin.commands.errors import CommandParseError from bin.commands.internal.factory import InternalCommandFactory from bin.custom_commands.basic_command import BasicCommand from...
/sbin-1.0.0.tar.gz/sbin-1.0.0/bin/custom_commands/dtos/command_tree_dto.py
0.794823
0.291086
command_tree_dto.py
pypi
from typing import List from bin.models.bin_base_model import BinBaseModel from bin.process.helpable import Helpable _PRE_CMD_SPACING = " " * 2 _DEFAULT_SPACING = " " * 4 _NAIVE_SPACING = " " * 2 class CommandSummary(BinBaseModel): command: str help: str def cmd_part_length(self) -> int: return...
/sbin-1.0.0.tar.gz/sbin-1.0.0/bin/commands/command_help.py
0.621656
0.179728
command_help.py
pypi
import copy import dataclasses import hashlib import inspect import json import re import typing as tp from collections.abc import Mapping, Sequence, Set from datetime import date, datetime import numpy as np from playground.core.expcache.types_ import LazyObject, is_primitive_type def function_source_hash(f: tp.Cal...
/sbm_exp_sdk-0.3.0-py3-none-any.whl/playground/core/expcache/hashing.py
0.587707
0.168857
hashing.py
pypi
import typing as tp from collections.abc import Mapping, Sequence, Set from dataclasses import is_dataclass import numpy as np import pandas as pd import polars as pl from scipy.sparse import coo_matrix, csc_matrix, csr_matrix T = tp.TypeVar("T") class LazyObject(tp.Generic[T]): data: tp.Optional[T] def __...
/sbm_exp_sdk-0.3.0-py3-none-any.whl/playground/core/expcache/types_.py
0.787278
0.23206
types_.py
pypi
import inspect import os from typing import Any, Callable, Dict, List, Optional, Set from diskcache import Cache from playground.core.expcache.hashing import function_source_hash, hash_arguments if os.getenv("CACHE_PATH") is None: raise Exception("CACHE_PATH envronment variable is not set") cachedb = Cache(os.ge...
/sbm_exp_sdk-0.3.0-py3-none-any.whl/playground/core/expcache/db.py
0.75101
0.169956
db.py
pypi
import typing as tp from collections.abc import Mapping, Sequence, Set from dataclasses import is_dataclass from playground.core.expcache.hashing import JSON_TYPE_CASTER from playground.core.expcache.types_ import ( Artifact, LazyObject, is_primitive_type, is_registered_custom_type, is_supported_ob...
/sbm_exp_sdk-0.3.0-py3-none-any.whl/playground/core/expcache/analyzer.py
0.552298
0.165323
analyzer.py
pypi
from collections import defaultdict from datetime import datetime from typing import Any, Dict, Optional, Union import pandas as pd import polars as pl from loguru import logger from playground.core.data.dataset_base import Dataset from playground.core.data.parquet_dataset import DatePartitionedParquetDataset, Parquet...
/sbm_exp_sdk-0.3.0-py3-none-any.whl/playground/core/data/catalog.py
0.801354
0.400691
catalog.py
pypi
from collections.abc import Mapping from copy import deepcopy from datetime import datetime from typing import Any, Dict, Optional, Union, cast import pandas as pd import polars as pl from playground.core.data.dataset_base import Dataset from playground.core.data.io import load_parquet class ParquetDataset(Dataset):...
/sbm_exp_sdk-0.3.0-py3-none-any.whl/playground/core/data/parquet_dataset.py
0.744935
0.322513
parquet_dataset.py
pypi
from pickle import dump as pdump from pickle import load as pload from tempfile import TemporaryDirectory from typing import Any, Dict, Optional, Sequence, Union import pandas as pd import polars as pl from fsspec import AbstractFileSystem from joblib import dump as jdump from joblib import load as jload from loguru i...
/sbm_exp_sdk-0.3.0-py3-none-any.whl/playground/core/data/io.py
0.726814
0.353847
io.py
pypi
import numpy as np import random import networkx as nx def sbm_graph(n, k, a, b): if n % k != 0: raise ValueError('n %k != 0') elif a <= b: raise ValueError('a <= b') sizes = [int(n/k) for _ in range(k)] _p = np.log(n) * a / n _q = np.log(n) * b / n if _p > 1 or _q > 1: ...
/sbmising-0.1.tar.gz/sbmising-0.1/sbmising.py
0.568895
0.28914
sbmising.py
pypi
pypi-download-stats ======================== [![PyPI version shields.io](https://img.shields.io/pypi/v/sbnltk.svg)](https://pypi.python.org/pypi/sbnltk/) [![PyPI license](https://img.shields.io/pypi/l/sbnltk.svg)](https://pypi.python.org/pypi/sbnltk/) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/sbnltk.sv...
/sbnltk-1.0.7.tar.gz/sbnltk-1.0.7/README.md
0.654343
0.843315
README.md
pypi
from __future__ import unicode_literals from io import StringIO from subprocess import CalledProcessError, check_call, check_output, Popen,\ PIPE import uuid import threading import time import os # Solution for detecting when the Selenium standalone server is ready to go by # listening to its console output. Ob...
/sbo-selenium-0.7.2.tar.gz/sbo-selenium-0.7.2/sbo_selenium/utils.py
0.671578
0.203075
utils.py
pypi
import sbol3 import graphviz import rdflib import argparse def graph_sbol(doc, outfile='out'): g = doc.graph() dot_master = graphviz.Digraph() dot = graphviz.Digraph(name='cluster_toplevels') for obj in doc.objects: dot.graph_attr['style'] = 'invis' # Graph TopLevel obj_label...
/sbol-utilities-1.0a14.tar.gz/sbol-utilities-1.0a14/sbol_utilities/graph_sbol.py
0.427994
0.167797
graph_sbol.py
pypi
import argparse import logging import os import sys import time from typing import Union, Tuple, Optional, Sequence import rdflib.compare import sbol3 def _load_rdf(fpath: Union[str, bytes, os.PathLike]) -> rdflib.Graph: rdf_format = rdflib.util.guess_format(fpath) graph1 = rdflib.Graph() graph1.parse(fp...
/sbol-utilities-1.0a14.tar.gz/sbol-utilities-1.0a14/sbol_utilities/sbol_diff.py
0.631026
0.3465
sbol_diff.py
pypi
# Introduction 1. Create an account on SynBioHub 2. Make sure you've downloaded `parts.xml` and it is placed somewhere convenient on your computer. 3. Make sure you've downloaded `results.txt` and it is placed somewhere convenient on your computer. 4. Install SBOL library in language of choice # Getting a Device fro...
/sbol2-1.4.1.tar.gz/sbol2-1.4.1/examples/tutorial.ipynb
0.550849
0.838481
tutorial.ipynb
pypi
# Introduction 1. Create an account on SynBioHub 2. Make sure you've downloaded `parts.xml` and it is placed somewhere convenient on your computer. 3. Make sure you've downloaded `results.txt` and it is placed somewhere convenient on your computer. 4. Install SBOL library in language of choice # Getting a Device fro...
/sbol2-1.4.1.tar.gz/sbol2-1.4.1/examples/.ipynb_checkpoints/tutorial-checkpoint.ipynb
0.550849
0.838481
tutorial-checkpoint.ipynb
pypi
from .optimizer_iteration import OptimizerIteration import numpy as np import qiskit.algorithms.optimizers.optimizer as qiskitopt from typing import Dict, Optional, Union, Callable, Tuple, List POINT = Union[float, np.ndarray] # qiskit documentation for base Optimizer class: # https://qiskit.org/documentation/_modul...
/optimizer/optimizer.py
0.966244
0.589657
optimizer.py
pypi
import numpy as np from scipy import optimize from typing import Callable, Tuple, Any def scott_bandwidth(n: int, d: int) -> float: ''' Scott's Rule per D.W. Scott, "Multivariate Density Estimation: Theory, Practice, and Visualization", John Wiley & Sons, New York, Chicester, 1992 ''' return n...
/optimizer/optimizer_iteration.py
0.9271
0.775817
optimizer_iteration.py
pypi
import math import numpy as np import scipy from SALib.sample import ( saltelli, sobol_sequence, latin, finite_diff, fast_sampler, ) #: the size of bucket to draw random samples NUM_DATA_POINTS = 10000 SUPPORTED_RANDOM_METHODS_TITLES = { "pseudo_random": "Pseudo Random", "sobol_sequence": ...
/sbp_env-2.0.2-py3-none-any.whl/sbp_env/randomness.py
0.761716
0.521045
randomness.py
pypi
import logging import math import random import time import re from typing import Optional, List, Union import numpy as np from tqdm import tqdm from . import engine from .utils.common import Node, PlanningOptions, Stats from .utils.csv_stats_logger import setup_csv_stats_logger, get_non_existing_filename from .visua...
/sbp_env-2.0.2-py3-none-any.whl/sbp_env/env.py
0.862685
0.205635
env.py
pypi
import random from overrides import overrides from ..samplers.baseSampler import Sampler from ..samplers.randomPolicySampler import RandomPolicySampler from ..utils import planner_registry # noinspection PyAttributeOutsideInit class BiRRTSampler(Sampler): r""" The sampler that is used internally by :class:`...
/sbp_env-2.0.2-py3-none-any.whl/sbp_env/samplers/birrtSampler.py
0.757974
0.506164
birrtSampler.py
pypi
import random import numpy as np from overrides import overrides from ..randomness import SUPPORTED_RANDOM_METHODS, RandomnessManager from ..samplers.baseSampler import Sampler from ..utils import planner_registry class RandomPolicySampler(Sampler): r"""Uniformly and randomly samples configurations across :math...
/sbp_env-2.0.2-py3-none-any.whl/sbp_env/samplers/randomPolicySampler.py
0.76366
0.460895
randomPolicySampler.py
pypi
from typing import List import networkx as nx import numpy as np from overrides import overrides import tqdm from ..utils.common import Node from ..planners.rrtPlanner import RRTPlanner from ..samplers import prmSampler from ..utils import planner_registry from ..utils.common import Colour, Stats volume_of_unit_ball...
/sbp_env-2.0.2-py3-none-any.whl/sbp_env/planners/prmPlanner.py
0.850096
0.60288
prmPlanner.py
pypi
from __future__ import annotations from dataclasses import dataclass from typing import Optional, Callable, Dict, Type, TYPE_CHECKING if TYPE_CHECKING: from ..planners.basePlanner import Planner from ..samplers.baseSampler import Sampler @dataclass class BaseDataPack: """ Base data pack that is comm...
/sbp_env-2.0.2-py3-none-any.whl/sbp_env/utils/planner_registry.py
0.911756
0.424591
planner_registry.py
pypi
0.4.0 (2023-06-30) ================== * Updated minimum supported versions: - Python 3.8 - `numpy` 1.18 - `astropy` 4.3 - `synphot` 1.1 - `astroquery` 0.4.5 New Features ------------ sbpy.activity ^^^^^^^^^^^^^ - Added ``VectorialModel.binned_production`` constructor for compatibility with time-depende...
/sbpy-0.4.0.tar.gz/sbpy-0.4.0/CHANGES.rst
0.902334
0.663505
CHANGES.rst
pypi
import sys from io import TextIOWrapper, BytesIO from numpy import array from sbpy.data import Conf from astropy.table import Table from astropy.io import ascii out = """ .. _field name list: sbpy Field Names ================ The following table lists field names that are recognized by `sbpy` when accessing `~sbpy.d...
/sbpy-0.4.0.tar.gz/sbpy-0.4.0/docs/compile_fieldnames.py
0.722527
0.578448
compile_fieldnames.py
pypi
About sbpy ========== What is sbpy? ------------- `sbpy` is an `~astropy` affiliated package for small-body planetary astronomy. It is meant to supplement functionality provided by `~astropy` with functions and methods that are frequently used in the context of planetary astronomy with a clear focus on asteroids and...
/sbpy-0.4.0.tar.gz/sbpy-0.4.0/docs/about.rst
0.932546
0.893309
about.rst
pypi
# Haser model Reproduce Fig. 1 of Combi et al. (2004): Column density versus project distance for a family of Haser model profiles of a daughter species. ``` import numpy as np import matplotlib.pyplot as plt import astropy.units as u from sbpy.activity import Haser % matplotlib notebook Q = 1e28 / u.s v = 1 * u.k...
/sbpy-0.4.0.tar.gz/sbpy-0.4.0/examples/activity/haser-model.ipynb
0.480722
0.9455
haser-model.ipynb
pypi
# Estimating Coma Continuum ``` import numpy as np import matplotlib.pyplot as plt import astropy.units as u import astropy.constants as const from sbpy.activity import Afrho, Efrho from mskpy.calib import solar_flux % matplotlib notebook afrho = Afrho(5000 * u.cm) efrho = Efrho(afrho * 3.5) # eph = Ephem.from_hori...
/sbpy-0.4.0.tar.gz/sbpy-0.4.0/examples/activity/estimating-coma-continuum.ipynb
0.667148
0.893263
estimating-coma-continuum.ipynb
pypi
def reverse_num(num): """Returns an integer Reverse of a number passed as argument """ rev = 0 while num > 0: rev = (rev * 10) + (num % 10) num //= 10 return rev def sum_of_digits(num): """Returns an integer Sum of the digits of a number passed as argument """ ...
/sbpyp-0.0.1.tar.gz/sbpyp-0.0.1/src/number_utility.py
0.780035
0.813535
number_utility.py
pypi
sbs-gob-pe-helper ============================== Nota : Te recomendamos revisar la [Nota legal](docs/NotaLegal.md) antes de emplear la libreria. **sbs-gob-pe-helper** ofrece una forma Pythonica de descargar datos de mercado de la [Superintendencia de Banca y Seguros del Perú](https://www.sbs.gob.pe/), mediante web s...
/sbs-gob-pe-helper-0.0.2.tar.gz/sbs-gob-pe-helper-0.0.2/README.md
0.704567
0.873862
README.md
pypi
from .base import SolutionByTextAPI class Message(SolutionByTextAPI): """ Send sms to subscriber. """ service_end_point = 'MessageRSService.svc/SendMessage' def __init__(self, security_token:str, org_code:str, stage:str, phone:str, message:str, custom_data=None): super().__init__( ...
/sbt-python-client-1.0.8.tar.gz/sbt-python-client-1.0.8/solutions_by_text/message.py
0.70202
0.285755
message.py
pypi
from abc import ABC from enum import Enum from typing import Type import pandas as pd from .configs import PortfolioAggregationConfig, ColumnsConfig from .interfaces import EScope class PortfolioAggregationMethod(Enum): """ The portfolio aggregation method determines how the temperature scores for the indivi...
/sbti_finance_tool-1.0.9-py3-none-any.whl/SBTi/portfolio_aggregation.py
0.871728
0.32742
portfolio_aggregation.py
pypi
from enum import Enum from typing import Optional, Dict, List import pandas as pd from pydantic import BaseModel, validator, Field class AggregationContribution(BaseModel): company_name: str company_id: str temperature_score: float contribution_relative: Optional[float] contribution: Optional[flo...
/sbti_finance_tool-1.0.9-py3-none-any.whl/SBTi/interfaces.py
0.92698
0.224895
interfaces.py
pypi
from typing import Optional, List import requests from SBTi.data.data_provider import DataProvider from SBTi.interfaces import IDataProviderTarget, IDataProviderCompany class Bloomberg(DataProvider): """ Data provider skeleton for Bloomberg. """ def _request(self, endpoint: str, data: dict) -> Opti...
/sbti_finance_tool-1.0.9-py3-none-any.whl/SBTi/data/bloomberg.py
0.599251
0.498047
bloomberg.py
pypi
from typing import List, Type import requests import pandas as pd import warnings from SBTi.configs import PortfolioCoverageTVPConfig from SBTi.interfaces import IDataProviderCompany class SBTi: """ Data provider skeleton for SBTi. This class only provides the sbti_validated field for existing companies. ...
/sbti_finance_tool-1.0.9-py3-none-any.whl/SBTi/data/sbti.py
0.707203
0.2296
sbti.py
pypi
from typing import List from SBTi.data.data_provider import DataProvider from SBTi.interfaces import IDataProviderCompany, IDataProviderTarget class Trucost(DataProvider): """ Data provider skeleton for Trucost. """ def get_targets(self, company_ids: List[str]) -> List[IDataProviderTarget]: ...
/sbti_finance_tool-1.0.9-py3-none-any.whl/SBTi/data/trucost.py
0.461988
0.561335
trucost.py
pypi
from typing import List from pydantic import ValidationError import logging import pandas as pd from SBTi.data.data_provider import DataProvider from SBTi.interfaces import IDataProviderCompany, IDataProviderTarget class CSVProvider(DataProvider): """ Data provider skeleton for CSV files. This class serves p...
/sbti_finance_tool-1.0.9-py3-none-any.whl/SBTi/data/csv.py
0.820397
0.383237
csv.py
pypi
from typing import Type, List from pydantic import ValidationError import logging import pandas as pd from SBTi.data.data_provider import DataProvider from SBTi.configs import ColumnsConfig from SBTi.interfaces import IDataProviderCompany, IDataProviderTarget class ExcelProvider(DataProvider): """ Data provi...
/sbti_finance_tool-1.0.9-py3-none-any.whl/SBTi/data/excel.py
0.804866
0.40987
excel.py
pypi
from typing import Any, Callable, Dict, List, Optional, Sequence, Union import flax.linen as nn import jax import jax.numpy as jnp import numpy as np import optax import tensorflow_probability from flax.training.train_state import TrainState from gymnasium import spaces from stable_baselines3.common.type_aliases impor...
/sbx_rl-0.7.0-py3-none-any.whl/sbx/sac/policies.py
0.943099
0.314643
policies.py
pypi
from functools import partial from typing import Any, Dict, Optional, Tuple, Type, Union import flax import flax.linen as nn import jax import jax.numpy as jnp import numpy as np import optax from flax.training.train_state import TrainState from gymnasium import spaces from stable_baselines3.common.buffers import Repl...
/sbx_rl-0.7.0-py3-none-any.whl/sbx/sac/sac.py
0.861596
0.247044
sac.py
pypi
from typing import Any, Callable, Dict, List, Optional, Union import flax.linen as nn import jax import jax.numpy as jnp import numpy as np import optax from gymnasium import spaces from stable_baselines3.common.type_aliases import Schedule from sbx.common.policies import BaseJaxPolicy from sbx.common.type_aliases im...
/sbx_rl-0.7.0-py3-none-any.whl/sbx/dqn/policies.py
0.903495
0.328799
policies.py
pypi
import warnings from typing import Any, Dict, Optional, Tuple, Type, Union import gymnasium as gym import jax import jax.numpy as jnp import numpy as np import optax from stable_baselines3.common.type_aliases import GymEnv, MaybeCallback, Schedule from stable_baselines3.common.utils import get_linear_fn from sbx.comm...
/sbx_rl-0.7.0-py3-none-any.whl/sbx/dqn/dqn.py
0.915583
0.356923
dqn.py
pypi
from typing import Any, Dict, Optional, Tuple, Type, Union from stable_baselines3.common.buffers import ReplayBuffer from stable_baselines3.common.noise import ActionNoise from stable_baselines3.common.type_aliases import GymEnv, Schedule from sbx.tqc.policies import TQCPolicy from sbx.tqc.tqc import TQC class DroQ...
/sbx_rl-0.7.0-py3-none-any.whl/sbx/droq/droq.py
0.913387
0.311453
droq.py
pypi
from typing import Any, Callable, Dict, List, Optional, Union import flax.linen as nn import gymnasium as gym import jax import jax.numpy as jnp import numpy as np import optax import tensorflow_probability from flax.linen.initializers import constant from flax.training.train_state import TrainState from gymnasium imp...
/sbx_rl-0.7.0-py3-none-any.whl/sbx/ppo/policies.py
0.957188
0.345768
policies.py
pypi
from typing import Any, Callable, Dict, List, Optional, Sequence, Union import flax.linen as nn import jax import jax.numpy as jnp import numpy as np import optax import tensorflow_probability from flax.training.train_state import TrainState from gymnasium import spaces from stable_baselines3.common.type_aliases impor...
/sbx_rl-0.7.0-py3-none-any.whl/sbx/tqc/policies.py
0.940606
0.346458
policies.py
pypi
from functools import partial from typing import Any, Dict, Optional, Tuple, Type, Union import flax import flax.linen as nn import jax import jax.numpy as jnp import numpy as np import optax from flax.training.train_state import TrainState from gymnasium import spaces from stable_baselines3.common.buffers import Repl...
/sbx_rl-0.7.0-py3-none-any.whl/sbx/tqc/tqc.py
0.850996
0.258066
tqc.py
pypi
from typing import Any, Dict, List, Optional, Tuple, Type, Union import jax import numpy as np from gymnasium import spaces from stable_baselines3 import HerReplayBuffer from stable_baselines3.common.buffers import DictReplayBuffer, ReplayBuffer from stable_baselines3.common.noise import ActionNoise from stable_baseli...
/sbx_rl-0.7.0-py3-none-any.whl/sbx/common/off_policy_algorithm.py
0.922805
0.25497
off_policy_algorithm.py
pypi
from typing import Any, Dict, List, Optional, Tuple, Type, TypeVar, Union import gymnasium as gym import jax import numpy as np import torch as th from gymnasium import spaces from stable_baselines3.common.buffers import RolloutBuffer from stable_baselines3.common.callbacks import BaseCallback from stable_baselines3.c...
/sbx_rl-0.7.0-py3-none-any.whl/sbx/common/on_policy_algorithm.py
0.936952
0.257088
on_policy_algorithm.py
pypi
[![License MIT](https://img.shields.io/pypi/l/sc-3D.svg?color=green)](https://github.com/GuignardLab/sc3D/raw/main/LICENSE) [![PyPI](https://img.shields.io/pypi/v/sc-3D.svg?color=green)](https://pypi.org/project/sc-3D) [![Python Version](https://img.shields.io/pypi/pyversions/sc-3D.svg?color=green)](https://python.org...
/sc-3D-1.1.0.tar.gz/sc-3D-1.1.0/README.md
0.693161
0.989511
README.md
pypi
import numpy as np import math class transformations: _EPS = np.finfo(float).eps * 4.0 @classmethod def unit_vector(clf, data, axis=None, out=None): """Return ndarray normalized by length, i.e. Euclidean norm, along axis. >>> v0 = numpy.random.random(3) >>> v1 = unit_vector(v0) ...
/sc-3D-1.1.0.tar.gz/sc-3D-1.1.0/src/sc3D/transformations.py
0.878255
0.624064
transformations.py
pypi
import numpy as np from sklearn.preprocessing import LabelEncoder from anndata import AnnData from typing import Optional from time import time from sc_FlowGrid._sc_FlowGrid import * def calinski_harabasz_score(X, labels): """Compute the Calinski and Harabasz score. It is also known as the Variance Ratio Criter...
/sc_FlowGrid-0.1.tar.gz/sc_FlowGrid-0.1/sc_FlowGrid/_sc_autoFlowGrid.py
0.867345
0.73338
_sc_autoFlowGrid.py
pypi
import pandas as pd import os def get_data(data_name='adj_close_price', columns=None, start_time='2016-01-01', end_time='2021-01-01', frequency=1): base_data_names = ['adj_close_price', 'adj_open_price', 'adj_high_price', 'adj_low_price', 'volume', 'va...
/sc-backtest-0.1.14.tar.gz/sc-backtest-0.1.14/sc_backtest/dataset.py
0.400046
0.284399
dataset.py
pypi