repo stringlengths 2 99 | file stringlengths 13 225 | code stringlengths 0 18.3M | file_length int64 0 18.3M | avg_line_length float64 0 1.36M | max_line_length int64 0 4.26M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
SLOPpy | SLOPpy-main/SLOPpy/subroutines/constants.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division # no more "zero" integer division bugs!:P
import numpy as np # array
# radiants, degrees conversions etc.
pi = 4.*np.arctan(1.)
dpi = 2.*pi
deg2rad = pi/180.
rad2deg = 180./pi
# various
TOLERANCE = np.finfo(np.float64(1.0)).eps
d2s = 8640... | 2,781 | 28.595745 | 73 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/shortcuts.py | from __future__ import print_function, division
from SLOPpy.subroutines.io_subroutines import *
from SLOPpy.subroutines.common import *
def retrieve_observations(output_name, night, observations,
use_refraction=True, use_telluric=True, use_interstellar=True,
use_tell... | 53,742 | 35.684642 | 124 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/fit_subroutines.py | from __future__ import print_function, division
import numpy as np
from scipy.linalg import lstsq
from scipy.optimize import curve_fit
from sklearn import linear_model, datasets
def berv_telluric_curvefit(xdata, p0, p1, p2):
return xdata[0] * p0 + xdata[1] * p1 + p2
def berv_linear_curve_fit(airmass, berv, logi... | 3,592 | 27.975806 | 94 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/smooth_subroutines.py | from __future__ import print_function, division
import numpy as np
def smooth(x, window_len=5, window='hanning'):
"""smooth the data using a window with requested size.
This method is based on the convolution of a scaled window with the signal.
The signal is prepared by introducing reflected copies of the... | 2,109 | 31.461538 | 121 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/object_parameters.py | from __future__ import print_function, division
import numpy as np
import SLOPpy.subroutines.kepler_exo as kp
__all__ = ["StarParameters", "PlanetParameters"]
G_grav = 6.67428e-11 # Gravitational Constants in SI system [m^3/kg/s^2]
M_sun = 1.9884e30 # Value from TRADES
class StarParameters:
"""
This class i... | 3,322 | 30.647619 | 91 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/bayesian_emcee.py | from SLOPpy.subroutines.common import *
import os
from SLOPpy.subroutines.mcmc_fit_functions import *
from SLOPpy.subroutines.math_functions import interpolate2d_grid_nocheck
#from SLOPpy.subroutines.interpol import interpolate1d_grid_nocheck
from multiprocessing import Pool
import emcee
import time
# define theta ... | 15,492 | 32.827511 | 118 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/clv_rm_subroutines.py | import numpy as np
from SLOPpy.subroutines.rebin_subroutines import *
def clv_rm_correction_factor_computation(clv_rm_modelling, wave, step, rv_shift, obs):
ancillary = {}
ancillary['norm_convolved_shifted'] = \
rebin_1d_to_1d(clv_rm_modelling['common']['wave'],
clv_rm_modelli... | 1,724 | 40.071429 | 114 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/mcmc_fit_functions.py | import numpy as np
from SLOPpy.subroutines.math_functions import interpolate2d_grid_nocheck
from SLOPpy.subroutines.constants import *
def compute_single_line(wave_meshgrid, planet_RVsinusoid, planet_K, line_array):
""" computing the spectral shift in RV """
rv_shift = planet_K * planet_RVsinusoid
line_m... | 48,048 | 33.345247 | 135 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/kepler_exo.py | import numpy as np
from scipy.optimize import fsolve
import SLOPpy.subroutines.constants as constants
# +
# NAME:
# exofast_keplereq
# PURPOSE:
# Solve Kepler's Equation
# DESCRIPTION:
# Solve Kepler's Equation. Method by S. Mikkola (1987) Celestial
# Mechanics, 40 , 329-334.
# result from Mikkola th... | 11,085 | 34.993506 | 139 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/common.py | import sys
import os
import matplotlib.pyplot as plt
from matplotlib.gridspec import GridSpec
from matplotlib.colors import Normalize
import numpy as np
import scipy.stats as sci_stats
import scipy.optimize as sci_optimize
import scipy.interpolate as sci_int
from astropy.io import fits
import json
import warnings
impor... | 3,093 | 42.577465 | 136 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/__init__.py | 0 | 0 | 0 | py | |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/math_functions.py | import numpy as np
from scipy.optimize import curve_fit
def interpolate1d_grid_nocheck(val, arr_1, arr_2):
# using enumerate() + next() to find index of
# first element just greater than 0.6
res = next(x for x, v in enumerate(arr_1) if v > val)
interp_out = (val-arr_1[res-1])/(arr_1[res]-arr_1[res-1... | 1,020 | 35.464286 | 116 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/eso_skycalc_cli.py | from __future__ import print_function, division
from SLOPpy.subroutines.common import *
from SLOPpy.subroutines.io_subroutines import get_filename
def get_eso_sckycalc_harps(obs_ref, wave_range, ra, dec, night, output):
# https://www.eso.org/observing/etc/doc/skycalc/helpskycalccli.html
time_tag = obs_ref[6... | 2,761 | 33.098765 | 120 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/io_subroutines.py | from __future__ import print_function, division
import numpy as np
try:
import cPickle as pickle
except:
import pickle
import os
from os import path
import oyaml as yaml
from SLOPpy.subroutines.object_parameters import StarParameters, PlanetParameters
from SLOPpy.config_default import *
__all__ = ["save_to_cp... | 14,538 | 31.525727 | 116 | py |
SLOPpy | SLOPpy-main/SLOPpy/subroutines/spectral_subroutines.py | from __future__ import print_function, division
import numpy as np
from astropy.io import fits
from SLOPpy.subroutines.rebin_subroutines import *
from SLOPpy.subroutines.constants import *
""" Empty module left here for back-compatibility, as almost every module
is importing this one rather than the rebin_subrout... | 1,883 | 46.1 | 151 | py |
SLOPpy | SLOPpy-main/SLOPpy/instruments/PEPSI_reduced.py | import numpy as np
from astropy.io import fits
from SLOPpy.subroutines.rebin_subroutines import *
from SLOPpy.subroutines import constants
from SLOPpy.subroutines.common import *
from astropy.coordinates import SkyCoord
from astropy import units as u
def PEPSI_get_instrument_keywords():
properties = {
# ... | 7,474 | 39.188172 | 131 | py |
SLOPpy | SLOPpy-main/SLOPpy/instruments/HARPS_DRSv3.py | from __future__ import print_function, division
from SLOPpy.instruments.common_DRSv3 import *
def HARPSv3_get_instrument_keywords():
""" These definitions applt to DRS version 3.x """
keywords = {
'header_rvc': 'HIERARCH ESO DRS CCF RVC',
'header_berv': 'HIERARCH ESO DRS BERV',
'header... | 5,356 | 46.830357 | 162 | py |
SLOPpy | SLOPpy-main/SLOPpy/instruments/HARPN_DRSv3.py | from __future__ import print_function, division
from SLOPpy.instruments.common_DRSv3 import *
def HARPNv3_get_instrument_keywords():
""" These definitions applt to DRS version 3.x """
keywords = {
'header_rvc': 'HIERARCH TNG DRS CCF RVC',
'header_berv': 'HIERARCH TNG DRS BERV',
'header... | 5,057 | 46.716981 | 162 | py |
SLOPpy | SLOPpy-main/SLOPpy/instruments/common_DRSv3.py | import numpy as np
from astropy.io import fits
from SLOPpy.subroutines.rebin_subroutines import *
from SLOPpy.subroutines.constants import *
from SLOPpy.subroutines.common import *
def DRSv3_map_orders_AB(properties, order_selection):
n_orders_A = properties['n_orders_A']
map_orders_A_full = np.arange(0, n_or... | 12,657 | 40.366013 | 135 | py |
SLOPpy | SLOPpy-main/SLOPpy/instruments/get_data.py | from __future__ import print_function, division
import numpy as np
from astropy.io import fits
from SLOPpy.subroutines.rebin_subroutines import *
from SLOPpy.subroutines.constants import *
from SLOPpy.instruments.HARPN_DRSv3 import *
from SLOPpy.instruments.HARPS_DRSv3 import *
from SLOPpy.instruments.PEPSI_reduced imp... | 1,669 | 51.1875 | 150 | py |
BehaviorTree.CPP | BehaviorTree.CPP-master/convert_v3_to_v4.py | #!/usr/bin/env python3
"""Converts BehaviorTree.CPP V3 compatible tree xml files to V4 format.
"""
import argparse
import copy
import logging
import sys
import typing
import xml.etree.ElementTree as ET
logger = logging.getLogger(__name__)
def strtobool(val: typing.Union[str, int, bool]) -> bool:
"""``distutils.... | 5,144 | 28.739884 | 86 | py |
A4000_coeffs | A4000_coeffs-master/__init__.py | import numpy as np
import scipy.interpolate as si
import numpy.ma as ma
import math
import os
module_dir = os.path.dirname(os.path.abspath(__file__))
class R_curves:
def __init__(self, bands):
self.A1_splines = {}
self.A2_splines = {}
for band in bands:
self.A1_splines[ban... | 2,556 | 34.027397 | 78 | py |
EPSANet | EPSANet-master/main.py | import argparse
import os
import random
import shutil
import time
import warnings
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.distributed as dist
import torch.optim
import torch.utils.data
import torch.utils.data.distributed
import torchvision.transform... | 15,032 | 34.707838 | 114 | py |
EPSANet | EPSANet-master/loss.py | import torch
import numpy as np
from torch import nn
from torch.autograd import Variable
import torch.nn.functional as F
class CrossEntropyLabelSmooth(nn.Module):
"""Cross entropy loss with label smoothing regularizer.
Reference:
Szegedy et al. Rethinking the Inception Architecture for Computer Vision. CVP... | 1,320 | 36.742857 | 91 | py |
EPSANet | EPSANet-master/models/SE_weight_module.py |
import torch.nn as nn
class SEWeightModule(nn.Module):
def __init__(self, channels, reduction=16):
super(SEWeightModule, self).__init__()
self.avg_pool = nn.AdaptiveAvgPool2d(1)
self.fc1 = nn.Conv2d(channels, channels//reduction, kernel_size=1, padding=0)
self.relu = nn.ReLU(inpla... | 651 | 30.047619 | 85 | py |
EPSANet | EPSANet-master/models/epsanet.py | import torch
import torch.nn as nn
import math
from .SE_weight_module import SEWeightModule
def conv(in_planes, out_planes, kernel_size=3, stride=1, padding=1, dilation=1, groups=1):
"""standard convolution with padding"""
return nn.Conv2d(in_planes, out_planes, kernel_size=kernel_size, stride=stride,
... | 6,122 | 35.664671 | 113 | py |
EPSANet | EPSANet-master/models/__init__.py | from .epsanet import *
| 23 | 11 | 22 | py |
trieste-develop | trieste-develop/setup.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 1,939 | 33.642857 | 89 | py |
trieste-develop | trieste-develop/trieste/bayesian_optimizer.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 46,324 | 40.39857 | 100 | py |
trieste-develop | trieste-develop/trieste/ask_tell_optimization.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 17,459 | 37.886414 | 100 | py |
trieste-develop | trieste-develop/trieste/logging.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 7,102 | 30.153509 | 98 | py |
trieste-develop | trieste-develop/trieste/space.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 45,403 | 41.040741 | 100 | py |
trieste-develop | trieste-develop/trieste/data.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 8,597 | 41.147059 | 99 | py |
trieste-develop | trieste-develop/trieste/types.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 1,272 | 33.405405 | 97 | py |
trieste-develop | trieste-develop/trieste/version.py | # Copyright 2022 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 787 | 36.52381 | 74 | py |
trieste-develop | trieste-develop/trieste/__init__.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 1,351 | 36.555556 | 96 | py |
trieste-develop | trieste-develop/trieste/observer.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 3,024 | 37.291139 | 100 | py |
trieste-develop | trieste-develop/trieste/objectives/single_objectives.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 23,895 | 35.819723 | 100 | py |
trieste-develop | trieste-develop/trieste/objectives/multifidelity_objectives.py | # Copyright 2023 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 3,507 | 31.785047 | 100 | py |
trieste-develop | trieste-develop/trieste/objectives/utils.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 2,051 | 33.2 | 97 | py |
trieste-develop | trieste-develop/trieste/objectives/multi_objectives.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 8,968 | 36.527197 | 99 | py |
trieste-develop | trieste-develop/trieste/objectives/__init__.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 1,380 | 27.770833 | 94 | py |
trieste-develop | trieste-develop/trieste/models/utils.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 4,316 | 40.114286 | 98 | py |
trieste-develop | trieste-develop/trieste/models/interfaces.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 30,175 | 41.263305 | 100 | py |
trieste-develop | trieste-develop/trieste/models/__init__.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 1,220 | 34.911765 | 98 | py |
trieste-develop | trieste-develop/trieste/models/optimizer.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 9,230 | 37.949367 | 100 | py |
trieste-develop | trieste-develop/trieste/models/gpflux/sampler.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 20,609 | 40.302605 | 100 | py |
trieste-develop | trieste-develop/trieste/models/gpflux/builders.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 6,191 | 38.43949 | 100 | py |
trieste-develop | trieste-develop/trieste/models/gpflux/models.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 18,255 | 44.526185 | 100 | py |
trieste-develop | trieste-develop/trieste/models/gpflux/__init__.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 1,158 | 37.633333 | 96 | py |
trieste-develop | trieste-develop/trieste/models/gpflux/interface.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 3,501 | 37.483516 | 98 | py |
trieste-develop | trieste-develop/trieste/models/keras/sampler.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 9,679 | 41.643172 | 100 | py |
trieste-develop | trieste-develop/trieste/models/keras/utils.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 5,241 | 37.262774 | 100 | py |
trieste-develop | trieste-develop/trieste/models/keras/architectures.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 14,523 | 40.497143 | 100 | py |
trieste-develop | trieste-develop/trieste/models/keras/builders.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 3,471 | 40.831325 | 99 | py |
trieste-develop | trieste-develop/trieste/models/keras/models.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 25,439 | 47.923077 | 100 | py |
trieste-develop | trieste-develop/trieste/models/keras/__init__.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 1,334 | 45.034483 | 94 | py |
trieste-develop | trieste-develop/trieste/models/keras/interface.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 4,335 | 36.37931 | 100 | py |
trieste-develop | trieste-develop/trieste/models/gpflow/inducing_point_selectors.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 18,538 | 39.655702 | 100 | py |
trieste-develop | trieste-develop/trieste/models/gpflow/sampler.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 40,450 | 42.402361 | 100 | py |
trieste-develop | trieste-develop/trieste/models/gpflow/utils.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 14,693 | 41.964912 | 99 | py |
trieste-develop | trieste-develop/trieste/models/gpflow/builders.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 27,128 | 42.68599 | 99 | py |
trieste-develop | trieste-develop/trieste/models/gpflow/models.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 90,637 | 43.825915 | 100 | py |
trieste-develop | trieste-develop/trieste/models/gpflow/__init__.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 1,858 | 30.508475 | 91 | py |
trieste-develop | trieste-develop/trieste/models/gpflow/interface.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 7,905 | 37.754902 | 100 | py |
trieste-develop | trieste-develop/trieste/models/gpflow/optimizer.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 3,374 | 34.526316 | 91 | py |
trieste-develop | trieste-develop/trieste/utils/misc.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 11,630 | 28.371212 | 100 | py |
trieste-develop | trieste-develop/trieste/utils/__init__.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 833 | 25.903226 | 74 | py |
trieste-develop | trieste-develop/trieste/acquisition/sampler.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 11,521 | 41.674074 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/rule.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 64,805 | 41.6917 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/utils.py | # Copyright 2022 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 5,297 | 37.391304 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/__init__.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 4,241 | 35.886957 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/interface.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 16,951 | 41.916456 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/combination.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 6,417 | 36.752941 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/optimizer.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 30,061 | 42.254676 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/function/greedy_batch.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 34,562 | 42.257822 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/function/utils.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 7,456 | 36.285 | 87 | py |
trieste-develop | trieste-develop/trieste/acquisition/function/multi_objective.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 33,929 | 43.821664 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/function/continuous_thompson_sampling.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 10,279 | 40.788618 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/function/function.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 77,739 | 38.262626 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/function/__init__.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 2,311 | 32.507246 | 99 | py |
trieste-develop | trieste-develop/trieste/acquisition/function/active_learning.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 20,764 | 39.320388 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/function/entropy.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 36,326 | 41.787986 | 100 | py |
trieste-develop | trieste-develop/trieste/acquisition/multi_objective/pareto.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 11,521 | 39.006944 | 99 | py |
trieste-develop | trieste-develop/trieste/acquisition/multi_objective/dominance.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 2,789 | 38.295775 | 97 | py |
trieste-develop | trieste-develop/trieste/acquisition/multi_objective/__init__.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 890 | 39.5 | 74 | py |
trieste-develop | trieste-develop/trieste/acquisition/multi_objective/partition.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 16,741 | 41.492386 | 100 | py |
trieste-develop | trieste-develop/trieste/experimental/__init__.py | 0 | 0 | 0 | py | |
trieste-develop | trieste-develop/trieste/experimental/plotting/plotting_plotly.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 8,489 | 31.653846 | 99 | py |
trieste-develop | trieste-develop/trieste/experimental/plotting/inequality_constraints.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 6,314 | 32.590426 | 88 | py |
trieste-develop | trieste-develop/trieste/experimental/plotting/plotting.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 17,758 | 32.070764 | 99 | py |
trieste-develop | trieste-develop/trieste/experimental/plotting/__init__.py | # Copyright 2022 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 1,444 | 31.111111 | 87 | py |
trieste-develop | trieste-develop/tests/conftest.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 2,636 | 33.246753 | 90 | py |
trieste-develop | trieste-develop/tests/__init__.py | 0 | 0 | 0 | py | |
trieste-develop | trieste-develop/tests/unit/test_setup.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 2,776 | 28.860215 | 87 | py |
trieste-develop | trieste-develop/tests/unit/test_logging.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 10,994 | 36.271186 | 100 | py |
trieste-develop | trieste-develop/tests/unit/test_data.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 10,398 | 36.814545 | 99 | py |
trieste-develop | trieste-develop/tests/unit/test_space.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 45,771 | 34.843383 | 100 | py |
trieste-develop | trieste-develop/tests/unit/test_ask_tell_optimization.py | # Copyright 2021 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 15,024 | 33.94186 | 100 | py |
trieste-develop | trieste-develop/tests/unit/test_observer.py | # Copyright 2020 The Trieste Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 3,726 | 38.231579 | 100 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.