This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| #-------------------------------------------------------------# | |
| # 创建者:https://v2rayse.com | |
| # 创建时间:2023-03-19 14:40:07 | |
| # 模版:v2rayse默认模版 | |
| # 节点数量:1 | |
| #-------------------------------------------------------------# | |
| # | |
| port: 7890 | |
| socks-port: 7891 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import pandas as pd | |
| #import lightgbm as lgb | |
| from optuna.integration import lightgbm as lgb | |
| from sklearn.model_selection import train_test_split | |
| from sklearn.utils import check_X_y, safe_sqr | |
| from sklearn.feature_selection.base import SelectorMixin | |
| from lightgbm import Booster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [plus] | |
| name=AliYun-2.1903 - Plus - mirrors.aliyun.com | |
| baseurl=http://mirrors.aliyun.com/alinux/2.1903/plus/$basearch/ | |
| gpgcheck=1 | |
| gpgkey=http://mirrors.aliyun.com/alinux/RPM-GPG-KEY-ALIYUN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //syncer { | |
| // rate 512000k; # bytes/second | |
| // c-plan-ahead 20; # 1/10 seconds, default | |
| // c-delay-target 15; # 1/10 seconds | |
| // c-fill-target 0s; # bytes | |
| // c-max-rate 921600k; # bytes/second | |
| // c-min-rate 81920k; # bytes/second | |
| // al-extents 6433; | |
| //} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| torch.cuda.current_device() | |
| torch.cuda.device(0) | |
| torch.cuda.device_count() | |
| torch.cuda.get_device_name(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| s.url.str.split(',', expand=True).stack().reset_index(level=1, drop=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from concurrent.futures import ThreadPoolExecutor | |
| from threading import local | |
| class FuturesSession(requests.Session): | |
| def __init__(self, max_workers=2, session_factory=requests.Session, *args, **kwargs): | |
| super().__init__(*args, **kwargs) | |
| self.session_factory = session_factory | |
| self.session_args = args | |
| self.session_kwargs = kwargs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import graph_tool | |
| from graph_tool.spectral import adjacency | |
| import numpy as np | |
| g = graph_tool.Graph() | |
| g.add_vertex(100) | |
| edges = np.random.randint(0, 100, (500,2)) | |
| g.add_edge_list(edges) | |
| mat = adjacency(g).tolil() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| s3fs -d marvin:/s3fs `pwd` -o passwd_file=/home/creditx/.aws/passwd -o url=https://s3.cn-north-1.amazonaws.com.cn -o use_path_request_style -o dbglevel=info -f -o curldbg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def pmml_validation(pmml): | |
| """ | |
| Use openscoring to test pmml on validation data and Save the probability result. | |
| """ | |
| headers = {'Content-type': 'text/xml'} | |
| data = bytes(pmml, encoding='utf-8') | |
| rt = requests.put('{}/{}'.format(validate_url, uuid.uuid4()), headers=headers, data=data) | |
| return rt.status_code == 200 or rt.status_code == 201 | |
NewerOlder