repo stringlengths 1 99 | file stringlengths 13 215 | code stringlengths 12 59.2M | file_length int64 12 59.2M | avg_line_length float64 3.82 1.48M | max_line_length int64 12 2.51M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
HEBO | HEBO-master/AntBO/bo/main.py | import os
import random
import sys
from pathlib import Path
from typing import Optional, Set
ROOT_PROJECT = str(Path(os.path.realpath(__file__)).parent.parent)
sys.path.insert(0, ROOT_PROJECT)
from utilities.misc_utils import log
from bo.custom_init import get_initial_dataset_path, InitialBODataset, get_top_cut_ratio... | 13,867 | 45.536913 | 137 | py |
HEBO | HEBO-master/AntBO/bo/kernels.py | # Implementation of various kernels
from gpytorch.kernels import Kernel
from gpytorch.kernels.matern_kernel import MaternKernel
from gpytorch.kernels.rbf_kernel import RBFKernel
from gpytorch.constraints import Interval
import torch
import numpy as np
from torch import Tensor
def wrap(x1, x2, integer_dims):
"""T... | 16,992 | 39.848558 | 133 | py |
HEBO | HEBO-master/AntBO/bo/gp.py | import warnings
from typing import Optional, Tuple
import botorch
import gpytorch
import torch.nn.functional
from botorch.models.gp_regression import MIN_INFERRED_NOISE_LEVEL
from gpytorch.constraints import Interval
from gpytorch.distributions import MultivariateNormal
from gpytorch.kernels import ScaleKernel
from gp... | 14,751 | 41.269341 | 136 | py |
HEBO | HEBO-master/AntBO/bo/botask.py | import numpy as np
from bo.base import TestFunction
from task.tools import Absolut, Manual
import torch
class BOTask(TestFunction):
"""
BO Task Class
"""
# this should be changed if we are tackling a mixed, or continuous problem, for e.g.
problem_type = 'categorical'
def __init__(self,
... | 1,400 | 28.808511 | 88 | py |
HEBO | HEBO-master/AntBO/bo/utils.py | def spearman(pred, target) -> float:
"""Compute the spearman correlation coefficient between prediction and target"""
from scipy import stats
coef_val, p_val = stats.spearmanr(pred, target)
return coef_val
def pearson(pred, target) -> float:
from scipy import stats
coef_val, p_val = stats.pear... | 6,211 | 36.648485 | 127 | py |
HEBO | HEBO-master/AntBO/bo/localbo_utils.py | import logging
from itertools import groupby
from collections import Callable
import random
from copy import deepcopy
from bo.kernels import *
import re
COUNT_AA = 5
AA = 'ACDEFGHIKLMNPQRSTVWY'
AA_to_idx = {aa: i for i, aa in enumerate(AA)}
idx_to_AA = {value: key for key, value in AA_to_idx.items()}
N_glycosylation_... | 26,913 | 37.175887 | 120 | py |
HEBO | HEBO-master/AntBO/bo/localbo_cat.py | import math
import sys
from copy import deepcopy
import gpytorch
import numpy as np
import torch
import sklearn
from sklearn.preprocessing import power_transform
from torch.distributions import Normal
from bo.gp import train_gp
from bo.localbo_utils import random_sample_within_discrete_tr_ordinal
def hebo_transform... | 23,410 | 47.270103 | 120 | py |
HEBO | HEBO-master/AntBO/bo/optimizer.py | from copy import deepcopy
from itertools import groupby
import numpy as np
import scipy.stats as ss
from bo.localbo_cat import CASMOPOLITANCat
from bo.localbo_utils import from_unit_cube, latin_hypercube, to_unit_cube, ordinal2onehot, onehot2ordinal,\
random_sample_within_discrete_tr_ordinal
from bo.localbo_utils i... | 15,239 | 48.803922 | 150 | py |
HEBO | HEBO-master/AntBO/model/huggingface_transformers.py | from pathlib import Path
import sys
import os
ROOT_PROJECT = str(Path(os.path.realpath(__file__)).parent.parent)
sys.path.insert(0, ROOT_PROJECT)
from transformers import AutoTokenizer, \
AutoModelForMaskedLM, \
TrainingArguments, \
Trainer, AutoM... | 7,381 | 43.203593 | 186 | py |
HEBO | HEBO-master/AntBO/model/lstm.py | import numpy as np
import torch
import torch.nn as nn
from torch.distributions import Categorical
from torch.nn import Module
from dataloader.base import MultiModalDataLoader
from model.base import BaseModel
class LSTMModel(BaseModel, Module):
def __init__(self, config):
BaseModel.__init__(self)
... | 4,041 | 37.132075 | 107 | py |
HEBO | HEBO-master/AntBO/model/vae.py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from model.base import BaseModel
from torch.nn import Module
from torch.utils.tensorboard import SummaryWriter
class CDR3VAE(BaseModel, Module):
def __init__(self, config, device):
BaseModel.__init__(self)
Module... | 8,365 | 40.211823 | 110 | py |
HEBO | HEBO-master/AntBO/model/networks.py | from model.base import BaseModel
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from torch.nn import Module
from einops.layers.torch import Rearrange, Repeat
class EncoderCDR3(Module):
def __init__(self):
super(EncoderCDR3, self).__init__()
self.encoder = nn.... | 1,520 | 26.654545 | 59 | py |
HEBO | HEBO-master/AntBO/model/transformer.py | import torch
import torch.nn as nn
from torch.nn import Module
import math
from model.base import BaseModel
from torch import Tensor
from torch.nn import TransformerEncoder, TransformerEncoderLayer
from torch.distributions.categorical import Categorical
import numpy as np
def generate_square_subsequent_mask(sz: int) -... | 3,993 | 39.343434 | 143 | py |
HEBO | HEBO-master/AntBO/dataloader/base.py | import numpy as np
import torch
from dataloader.dataset import TransformerSeq2Seq
from torch.utils.data import DataLoader, random_split
import os
from abc import ABC
class MultiModalDataLoader(ABC):
""""Class used to create train and test data loaders for either graph or standard feature vector inputs.
""... | 4,424 | 35.570248 | 118 | py |
HEBO | HEBO-master/AntBO/dataloader/dataset.py | import pdb
import torch
import torch.utils.data as data
import pandas as pd
import numpy as np
import glob
import matplotlib.pyplot as plt
from transformers import AutoTokenizer
import re
import os
def energy_to_labels(energy):
mean = energy.mean()
labels = 1*(energy>=mean)
return np.asarray(labels)
class... | 5,289 | 36.785714 | 153 | py |
HEBO | HEBO-master/HEBO/hebo/benchmarks/synthetic_benchmarks.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 7,239 | 36.128205 | 204 | py |
HEBO | HEBO-master/HEBO/hebo/design_space/design_space.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 4,467 | 35.92562 | 104 | py |
HEBO | HEBO-master/HEBO/hebo/models/base_model.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,906 | 33.2 | 94 | py |
HEBO | HEBO-master/HEBO/hebo/models/model_factory.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,060 | 30.556701 | 121 | py |
HEBO | HEBO-master/HEBO/hebo/models/scalers.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,101 | 33.087912 | 86 | py |
HEBO | HEBO-master/HEBO/hebo/models/layers.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,642 | 31.215686 | 111 | py |
HEBO | HEBO-master/HEBO/hebo/models/util.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,386 | 41.030303 | 127 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/mcbn.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,413 | 40.62069 | 155 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/deep_ensemble.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 10,224 | 41.782427 | 147 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/conditional_deep_ensemble.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 14,232 | 39.206215 | 123 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/fe_layers.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,297 | 31.98 | 114 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/fe_deep_ensemble.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,966 | 45.670588 | 221 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/gumbel_linear.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 4,298 | 41.564356 | 150 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/sgld.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 4,700 | 39.878261 | 142 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/eac/embedding_alignment_cell.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 7,489 | 40.381215 | 103 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/eac/eac_ensemble.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 5,206 | 39.679688 | 88 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/eac/masked_deep_ensemble.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,829 | 41.878788 | 103 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/eac/eac_model.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 7,932 | 39.269036 | 88 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/eac/positional_encoding.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,712 | 37.931818 | 111 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/mono_layers/lattice.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,939 | 40.914894 | 137 | py |
HEBO | HEBO-master/HEBO/hebo/models/nn/mono_layers/layers.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 4,514 | 31.021277 | 114 | py |
HEBO | HEBO-master/HEBO/hebo/models/rf/rf.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,283 | 39.070175 | 107 | py |
HEBO | HEBO-master/HEBO/hebo/models/gp/svidkl.py | # TODO:
# spectral-normalization
import torch.nn as nn
from torch.nn.utils import spectral_norm
from copy import deepcopy
from gpytorch.kernels import ScaleKernel, MaternKernel
from .gp_util import DummyFeatureExtractor
from .svgp import SVGP
def construct_hidden(dim, num_layers, num_hiddens, act = nn.ReLU(), sn_nor... | 2,464 | 38.758065 | 128 | py |
HEBO | HEBO-master/HEBO/hebo/models/gp/gp.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 6,481 | 38.766871 | 140 | py |
HEBO | HEBO-master/HEBO/hebo/models/gp/gpy_mlp.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,811 | 37.897959 | 135 | py |
HEBO | HEBO-master/HEBO/hebo/models/gp/gpy_wgp.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 4,828 | 39.241667 | 135 | py |
HEBO | HEBO-master/HEBO/hebo/models/gp/gp_util.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,748 | 40.651515 | 118 | py |
HEBO | HEBO-master/HEBO/hebo/models/gp/svgp.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 10,307 | 39.904762 | 148 | py |
HEBO | HEBO-master/HEBO/hebo/models/boosting/catboost.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,103 | 46.030303 | 102 | py |
HEBO | HEBO-master/HEBO/hebo/optimizers/evolution.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 4,847 | 36.292308 | 123 | py |
HEBO | HEBO-master/HEBO/hebo/optimizers/hebo_contextual.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,667 | 30.471698 | 81 | py |
HEBO | HEBO-master/HEBO/hebo/optimizers/hebo_embedding.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 5,687 | 36.668874 | 126 | py |
HEBO | HEBO-master/HEBO/hebo/optimizers/hebo.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 9,577 | 42.144144 | 126 | py |
HEBO | HEBO-master/HEBO/hebo/optimizers/noisy_opt.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,887 | 42.685393 | 122 | py |
HEBO | HEBO-master/HEBO/hebo/optimizers/nomr.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,661 | 31.864198 | 92 | py |
HEBO | HEBO-master/HEBO/hebo/optimizers/general.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 7,857 | 42.175824 | 134 | py |
HEBO | HEBO-master/HEBO/hebo/optimizers/bo.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,635 | 38.096774 | 128 | py |
HEBO | HEBO-master/HEBO/hebo/optimizers/cmaes.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 8,763 | 40.535545 | 187 | py |
HEBO | HEBO-master/HEBO/hebo/optimizers/vcbo.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 10,968 | 43.229839 | 140 | py |
HEBO | HEBO-master/HEBO/hebo/acq_optimizers/evolution_optimizer.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 6,720 | 40.745342 | 123 | py |
HEBO | HEBO-master/HEBO/hebo/acquisitions/acq.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 7,882 | 31.440329 | 116 | py |
HEBO | HEBO-master/HEBO/test/test_concrete.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,460 | 30.961039 | 92 | py |
HEBO | HEBO-master/HEBO/test/test_evolution_optimizer.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 4,545 | 32.925373 | 84 | py |
HEBO | HEBO-master/HEBO/test/test_scalers.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,353 | 33.57732 | 91 | py |
HEBO | HEBO-master/HEBO/test/test_categorical_encoder.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,705 | 30.592593 | 81 | py |
HEBO | HEBO-master/HEBO/test/test_constrained_multi_objective.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,362 | 35.837838 | 104 | py |
HEBO | HEBO-master/HEBO/test/test_eac.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 10,871 | 41.972332 | 121 | py |
HEBO | HEBO-master/HEBO/test/test_fe_layers.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,796 | 31.672727 | 85 | py |
HEBO | HEBO-master/HEBO/test/test_gp.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,753 | 29.241379 | 81 | py |
HEBO | HEBO-master/HEBO/test/test_deep_ensemble.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,590 | 38.9 | 146 | py |
HEBO | HEBO-master/HEBO/test/util.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 778 | 37.95 | 105 | py |
HEBO | HEBO-master/HEBO/test/test_multi_task_model.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 4,113 | 35.087719 | 88 | py |
HEBO | HEBO-master/HEBO/test/test_model_util.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 951 | 30.733333 | 81 | py |
HEBO | HEBO-master/HEBO/test/test_base_model.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 4,935 | 32.578231 | 92 | py |
HEBO | HEBO-master/HEBO/test/test_acq.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,810 | 29.183333 | 114 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/optimizer_mo.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 9,518 | 44.113744 | 166 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/optimizer_mace.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 10,598 | 42.617284 | 128 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/optimizer_gpy.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 10,465 | 42.790795 | 128 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/optimizer.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 996 | 33.37931 | 81 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/test/test_scalers.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,201 | 32.876923 | 89 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/test/test_categorical_encoder.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,703 | 30.555556 | 81 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/test/test_multi_task_model.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,511 | 34.474747 | 87 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/test/test_base_model.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,686 | 32.825688 | 98 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/design_space/design_space.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 4,247 | 34.697479 | 92 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/models/base_model.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,163 | 29.423077 | 90 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/models/scalers.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,264 | 34.48913 | 108 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/models/multioutput_wrapper.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,260 | 33.257576 | 90 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/models/layers.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,478 | 33.395349 | 111 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/models/rf/rf.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,582 | 34.383562 | 94 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/models/gp/additive_gp.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,425 | 30.921053 | 95 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/models/gp/gp.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 8,046 | 39.034826 | 141 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/models/gp/gpy_mlp.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 3,730 | 34.198113 | 106 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/models/gp/gpy_wgp.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 4,633 | 36.370968 | 106 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/algorithms/bo.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,561 | 42.388889 | 83 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/optimizers/grad_opt.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 2,826 | 38.816901 | 109 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/optimizers/evolution_optimizer.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 5,432 | 41.779528 | 110 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/acquisitions/acq.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 5,318 | 30.288235 | 114 | py |
HEBO | HEBO-master/HEBO/archived_submissions/hebo/bo/acquisitions/qacq.py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of ME... | 1,703 | 38.627907 | 86 | py |
HEBO | HEBO-master/T-LBO/weighted_retraining/test/test_gp_fit.py | import argparse
import logging
import os
import subprocess
import sys
import time
import traceback
from pathlib import Path
from typing import Dict, Any, Optional
import numpy as np
import pytorch_lightning as pl
import torch
from pytorch_lightning.loggers import TensorBoardLogger
from tqdm.auto import tqdm, trange
R... | 26,611 | 37.456647 | 119 | py |
HEBO | HEBO-master/T-LBO/weighted_retraining/test/test_retraining.py | # Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved.
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions... | 36,272 | 53.058122 | 757 | py |
HEBO | HEBO-master/T-LBO/weighted_retraining/test/test_qehvi.py | # Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved.
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions... | 9,969 | 42.72807 | 757 | py |
HEBO | HEBO-master/T-LBO/weighted_retraining/test/test_mogp.py | # Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved.
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions... | 26,247 | 63.650246 | 757 | py |
HEBO | HEBO-master/T-LBO/weighted_retraining/test/test_metrics.py | # Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved.
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions... | 2,621 | 52.510204 | 757 | py |
HEBO | HEBO-master/T-LBO/weighted_retraining/test/test_expr.py | # Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved.
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions... | 3,909 | 34.225225 | 757 | py |
HEBO | HEBO-master/T-LBO/weighted_retraining/test/test_stationarity.py | import os
from typing import Union, Callable, Optional
import numpy as np
import torch
from matplotlib import pyplot as plt
from pytorch_metric_learning import distances
from torch import Tensor
from torch.utils.data import TensorDataset, DataLoader
from tqdm import tqdm
from weighted_retraining.weighted_retraining.e... | 10,761 | 44.601695 | 120 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.