python+matlab+机器学习代理模型
python+matlab+机器学习代理模型
Spring(小雨点)
做一些自己实际开发系统的笔记教程,希望能对大家有所帮助,有不足之处请指出。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python优化、进化算法、启发式算法
一个封装了7种启发式算法的 Python 代码库(差分进化算法、遗传算法、粒子群算法、模拟退火算法、蚁群算法、鱼群算法、免疫优化算法)python优化中文文档原创 2021-11-10 17:16:12 · 1019 阅读 · 0 评论 -
获取一个数组里离一个值最近的周围2n个数的距离的算法
思路,考虑三种情况,n<x&x+n<lenth ,x+n> lenth ,x<n。x为原数组,near为最近的2n数组。def neartwon (x,ids,demension): if(ids>demension|ids+demension<=np.shape(x)[0]): near=x[ids-demension:ids+demension,:] elif (ids+demension>=np.shape(x)[0]原创 2021-11-21 18:42:54 · 750 阅读 · 0 评论 -
numpy求数组某行某列的最大值
Examplesa = np.arange(4).reshape((2,2))aarray([[0, 1], [2, 3]])np.amax(a) # Maximum of the flattened array3np.amax(a, axis=0) # Maxima along the first axisarray([2, 3])np.amax(a, axis=1) # Maxima along the second axisarray([.原创 2021-11-22 20:08:28 · 6140 阅读 · 0 评论 -
java springboot调用python的两种方式
1.打包@RequestMapping("optimizess") public String Opt() throws JsonParseException, JsonMappingException, IOException { ProcessBuilder processBuilder =new ProcessBuilder(); //设置执行的第三方程序(命令),第一个参数是命令,之后的是参数// processBuilder.command("ping","1原创 2021-11-29 10:01:05 · 2508 阅读 · 0 评论 -
机器学习算法,预测分类,直接用matlab和python api中的例子进行开发
sklearn文档 from sklearn import svmX = [[0, 0,0], [1, 1,1], [2, 2,2]]#3样本y = [0, 1,2]#3结果clf = svm.SVR()clf.fit(X, y)a=clf.predict([[2, 2,3]])#预测样本print(a)原创 2021-11-25 17:31:37 · 524 阅读 · 0 评论 -
代理模型 克里金预测
克里金官网原创 2021-11-29 10:55:36 · 989 阅读 · 0 评论 -
numpy处理矩阵,求平均、最值、获取excel
numpy获取数组元素,处理矩阵。1.对数组求平均值import numpy as npa = np.array([[1, 2], [3, 4]])print(a)print(type(a))print(np.mean(a))print(np.mean(a, axis=0)) # axis=0,计算每一列的均值print(np.mean(a, axis=1)) # 计算每一行的均值2.对矩阵求平均值import numpy as npnum1 = np.array([[1,2,3]原创 2021-11-25 09:43:24 · 1580 阅读 · 0 评论 -
NAN报错
找到赋值点 q_sample = np.concatenate((q_sample, trial_npv[0:1,:]), axis=0)#往q_sample里加一行最大的找到原因:创建后自动生成默认数值的数组 q_sample=np.empty([q,np.shape(sample)[1]], dtype = float)原创 2021-12-03 16:52:09 · 2976 阅读 · 0 评论 -
机器学习sklearn中文文档、Rbf神经网络预测、 并行计算python实现
标题Rbf(*args) A class for radial basis function interpolation of functions from N-D scattered data to an M-D domain. Parameters ---------- *args : arrays x, y, z, ..., d, where x, y, z, ... are the coordinates of the nodes原创 2021-11-10 14:02:24 · 2520 阅读 · 0 评论
分享