本文整理汇总了Python中Preprocess.ready_player_one方法的典型用法代码示例。如果您正苦于以下问题:Python Preprocess.ready_player_one方法的具体用法?Python Preprocess.ready_player_one怎么用?Python Preprocess.ready_player_one使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Preprocess
的用法示例。
在下文中一共展示了Preprocess.ready_player_one方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Preprocess
# 需要导入模块: import Preprocess [as 别名]
# 或者: from Preprocess import ready_player_one [as 别名]
__author__ = 'p2admin'
import matplotlib.pyplot as plt
from sklearn.externals import joblib
from sklearn.preprocessing import StandardScaler, MinMaxScaler
import seaborn as sns
import numpy as np
sns.set_style('ticks');
sns.set_palette('Set1')
import json
from pymc3 import *
import Preprocess
import Kriging
import CovarianceEstimate
pre = Preprocess(all_dat='../all_games.pkl', pca_model='../eco_full_pca.pkl')
X, y = pre.ready_player_one(2)
scale = MinMaxScaler((-1.,1.))
X = scale.fit_transform(X)
from tqdm import tqdm
file_address = 'p2_bfgs_sigma_alpha8.286TRUNCATED.json'
with open(file_address, 'r') as f:
best_obj, best_sig = json.load( f)
f.close()
# unit_sig = np.ones(31)
# bounds = np.array(31*[[-1., 1.]])
# bestKrig = Kriging(best_sig, bounds=bounds)
# bestKrig.fit(X,y)