Skip to main content

A tool package for Bgolearn

Project description

__description__ = ‘BgoKit, A tool package for Bgolearn’ __documents__ = ‘https://bgolearn.netlify.app/’ __author__ = ‘Bin Cao, Advanced Materials Thrust, Hong Kong University of Science and Technology (Guangzhou)’ __author_email__ = ‘binjacobcao@gmail.com’ __url__ = ‘https://github.com/Bin-Cao/Bgolearn

# 安装后, 通过此命令调用BGOsampling类 import Bgolearn.BGOsampling as BGOS import pandas as pd

# 读入我们使用的数据 data = pd.read_csv(‘./data/data.csv’) vs = pd.read_csv(‘./data/Visual_samples.csv’)

# 在此研究中,变量是元素含量 : Sn, Bi, In, Ti, 也就是前四列 x = data.iloc[:,:-2] # 这行代码读取前四列,是特征

y_T = data.iloc[:,-2] # 这行代码读取倒数第二列,是目标, 抗拉强度 T y_E = data.iloc[:,-1] # 这行代码读取倒数第一列,是目标, 断裂延伸率 E

# 执行Bgolearn Bgolearn = BGOS.Bgolearn()

Mymodel_T = Bgolearn.fit(data_matrix = x, Measured_response = y_T, virtual_samples = vs, min_search=False) score_T, rec_T = Mymodel_T.UCB()

Mymodel_E = Bgolearn.fit(data_matrix = x, Measured_response = y_E, virtual_samples = vs, min_search=False) score_E, rec_E = Mymodel_E.UCB()

# 执行BgoKit from BgoKit import ToolKit

Model = ToolKit.MultiOpt(vs,[score_T,score_E]) Model.BiSearch() Model.plot_distribution()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bgokit-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bgokit-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file bgokit-0.1.0.tar.gz.

File metadata

  • Download URL: bgokit-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.19

File hashes

Hashes for bgokit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0a47bb569c0cd2da36f9be1ebd0230d81e30bd66a6e8929684c3c135fb5890fa
MD5 70fa719a47cc710a799b9639de5504c8
BLAKE2b-256 35955eb6a9b830eae1c02cc754af4ab72884bef31ecf83424db5c3efed258f5e

See more details on using hashes here.

File details

Details for the file bgokit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bgokit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.19

File hashes

Hashes for bgokit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8310c19235a7042c613888dc4519531991d76b516d91c5b2d0f46e0dff710da4
MD5 859c4fe52f43cdf29a5dd284cb1b6878
BLAKE2b-256 af17eec0f8db0d866509516d250495bc96fdd2f4893356b5350ed0a3e0b80502

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page