PLS test h1z1test sever是什么么

plspm_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
&&偏最小二乘R包
阅读已结束,下载文档到电脑
想免费下载本文?
定制HR最喜欢的简历
下载文档到电脑,方便使用
还剩41页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢现在网上大部分都是PLS的一些方法,下面我具体的展示一下代码,
分为四个部分,demo(演示),PLS_B(训练B值),PRE(预测部分),DRAW(画图)总共四个部分,先来第一部分,具体的算法原理网上很多教程,这里就不多说了,直接上代码。
&span style=&color:#3366&&&strong&&span style=&font-size:24&&#encoding:utf-8
#从其他文件中导入需要的包和类
from Train_erro import Erro
from Drawing import drawing
import scipy.io as sio
from pls_B import PLS
import numpy as np
from sklearn import cross_validation
# 读取需要使用的光谱数据
# fname = sio.loadmat(r&G:\data\NIRtablet.mat&)
fname = sio.loadmat(r&G:\data\normal_NIR\normal_NIRtablet.mat&)
print fname.keys()
X = fname[&X&]
Y = fname[&Y&]
# 将光谱数据进行划分,划分为训练部分和测试部分
X_train, X_test,Y_train, Y_test = cross_validation.train_test_split(X,Y,test_size=0.2, random_state=0)
# fname = sio.loadmat(r&G:\data\train_data.mat&)
# X_train, X_test,Y_train, Y_test = fname['train_x'], fname['test_x'], fname['train_y'], fname['test_y']
#将数据进行中心化处理
Xtrainmean = np.mean(X_train, axis=0)
Ytrainmean = np.mean(Y_train, axis=0)
ytestmean = np.mean(Y_test, axis=0)
xtestmean = np.mean(X_test, axis=0)
X_center = np.subtract(X_train, Xtrainmean)
Y_center = np.subtract(Y_train, Ytrainmean)
xtest_center = np.subtract(X_test, xtestmean)
ytest_center = np.subtract(Y_test,ytestmean)
#设置要选取的主成分个数, 一般需要交叉验证,这点直接给出
#调用PLSS算法,得到计算后的B
plss = PLS()
B = put(pc, X_center, Y_center)
#进行训练,调用训练的函数
train_erro, return_Y = Erro(pc, X_center, Y_train, B, Ytrainmean)
#进行预测,调用预测函数
test_erro, return_y = Erro(pc, xtest_center, Y_test, B, ytestmean)
draw=drawing()
draw.Distribution(pc, Y_train, return_Y, Y_test, return_y)
# draw.Distribution(pc, Y_test, return_y)
draw.Line_chart(train_erro,test_erro )
# draw.Line_chart(test_erro)&/span&&/strong&&/span&&span style=&color:#ff0000;&&&strong&&span style=&font-size:24&&
&/span&&/strong&
本文已收录于以下专栏:
相关文章推荐
scikit learn机器学习包中包含了偏最小二乘回归,所以可以调用对应的函数来实现
class sklearn.cross_decomposition.PLSRegression(n_compon...
机器学习常见算法分类汇总
算法与数学之美
原文出处:IT经理网
机器学习无疑是当前数据分析领域的一个热点内容。很多人在平时的工作中都或多或少会用到机器学习的算法...
来看看 random_state 这个参数SVC(random_state=0)里有参数 random_statefrom imblearn.over_sampling import SMOTE
监督学习中,如果预测的变量是离散的,我们称其为分类(如决策树,支持向量机等),如果预测的变量是连续的,我们称其为回归。回归分析中,如果只包括一个自变量和一个因变量,且二者的关系可用一条直线近似表示,这...
看一篇文章,其中提到了偏最小二乘回归PLS,PLS方法在普通多元回归的基础(最小二乘法),结合了主成分分析PCA和典型相关分析CCA的思想,解决回归分析中自变量多重共线性的问题。
首先需要补充一下PC...
***********************线性和非线性的区别********************************
1. 线性linear,指量与量之间按比例、成直线的关系,在数学上可...
scikit learn机器学习包中包含了偏最小二乘回归,所以可以调用对应的函数来实现
class sklearn.cross_decomposition.PLSRegression(n_compon...
他的最新文章
讲师:李江龙
讲师:司徒正美
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)Howto: UPnP AV server/client in Ubuntu Breezy/D Pls Test
Jump to page:
Results 1 to 10 of 27
Linear Mode
Spilled the Beans
Howto: UPnP AV server/client in Ubuntu Breezy/D Pls Test
Universal Plug and Play AV Media Server/Client with Dapper B Testers Wanted.
In this tutorial is split into two parts.
In the first part we will setup up a machine running Dapper Beta 1 as a UPnP AV Media S In the second part I will demonstrate how to correctly install djmount.
Part 1: Ubuntu with uShare. (This will work on Breezy too! no Fuse issues with the server)
First open a shell on the machine you want to have as your UPnP server. I will call it mediaserver from here out.
We first make a backup of your sources.list file.
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.`date +%F`
This will move your current sources.list file to the file sources.list.YYYY-MM-DD.We add the geexbox debian repository. If you are using ssh and don't have access to gedit use your favorite text editor. We also need to add the GeexBox GPG key to apt.
$ sudo gedit /etc/apt/sources.list
Add the following lines.
##GeexBox uShare UPnP media server
deb http://www.geexbox.org/debian/ unstable main
Next we add the GPG keys for geexbox.
$gpg --keyserver subkeys.pgp.net --recv B867EF
$gpg --export --armor B867EF | sudo apt-key add -
We install uShare.
$sudo apt-get update && sudo apt-get install uShare
Configuring uShare.
We add a multicast route. This will allow you to controll what machines get your UPnP multicast.
The format is
$sudo route add -net abc.def.geh.0 netmask 255.0.0.0 dev ethX
Where abc.def.geh is your network ip range and X is the ethernet device you with to use. I'm currently at the University of Connecticut (class b, 137.99) and my server is running on my second ethernet card so I might add do the following to add the multicast route.
$ sudo route add -net 137.99.0.0 netmask 255.255.0.0 dev eth1
Next change directory into the folder you want to share.
$ cd /home/username/share
Exporting is now just a simple command.
$sudo ushare -c ./ -i eth1
uShare will now gather the meta data. Happy UPnP filesharing!
Please if you use this guide and run into errors or you think something could be explained better let me know! I want this to be quite usable and a suitable alternative to windows media connect UPnP AV server!
Part II will be done at a later date!
A Carafe of Ubuntu
Re: Howto: UPnP AV server/client in Ubuntu Breezy/D Pls Test
I tried ushare with my OmniFi DMS1 and the DMS1 shows &ushare& as a meda source, but as soon as I select it, the DMS1 hangs.
Any thoughts?
Registered Linux user
Register Ubuntu user
Ubuntu Member
Re: Howto: UPnP AV server/client in Ubuntu Breezy/D Pls Test
Everything installs without a hitch.
I'm using a buffalo linktheater to access the upnp share, the linktheater sees the share but it's flagged as &UNAUTHORIZED.&
how to authorize?
When I select the share and try to open it the error message I recieve is that the &Server needs to auathorize cleint access.&
&Nice jail.
Looks strong.&
- H. Houdini
First Cup of Ubuntu
Re: Howto: UPnP AV server/client in Ubuntu Breezy/D Pls Test
Im using the D-Link DSM-320.
I can play MP3's no problem, look at the kids photos without a hitch, and even play internet media (, etc.)
But when I try to play a movie off of the server (or tv show) it hangs when the bit-rate gets too high and appears to stall while it &catches-up&.
I am assuming that I need to set my multi-cast differently.
Current setting is:
$ route add -net 192.168.0.0 netmask 255.255.0.0 dev eth0
Is my netmask too wide and mistakenly set for class B or is my route wrong?
I REALLY want to stick with my Ubuntu and ushare box and stop using MS as my media server.
Any help would be appreciated.
A Carafe of Ubuntu
Re: Howto: UPnP AV server/client in Ubuntu Breezy/D Pls Test
I'm having trouble getting this package installed.. I'm trying it on my AMD64 and my 32bit intel laptop.. On the desktop when I type
sudo apt-get update && sudo apt-get install uShare
Failed to fetch http://www.geexbox.org/debian/dists/unstable/Release
Unable to find expected entry
main/binary-amd64/Packages in Meta-index file (malformed Release file?)
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
(obviously after it runs all the updates on the rest of the repos.
On the laptop when I type
sudo apt-get update && sudo apt-get install ushare
I get a problem about it not being able to uninstall gmediaserver (only does music, I need video, too).
If anyone has any thought on this, I'd greatly appreciate it.. I'm sorry for bringing up an old thread, but I've been searching for weeks on end for a program to work with my DSM-320. I found TwonkyVision, but I'm not wanting to pay to utilize the program. I've also tried mediatomb and flumotion, neither of which I could seem to get fully installed.
I'm freaking stumped
A Carafe of Ubuntu
Re: Howto: UPnP AV server/client in Ubuntu Breezy/D Pls Test
bump... Anyone?
A Carafe of Ubuntu
Re: Howto: UPnP AV server/client in Ubuntu Breezy/D Pls Test
ttt... Anyone?
A Carafe of Ubuntu
Re: Howto: UPnP AV server/client in Ubuntu Breezy/D Pls Test
First Cup of Ubuntu
Re: Howto: UPnP AV server/client in Ubuntu Breezy/D Pls Test
Grant ive just pulled my dsm out of the cupboard yesterday to give it another chance. imo they're rather crap, mainly because of only wep encryption.
I had it going last year although i eventually just plugged in a laptop instead.
It was running happily though, using dlinks default software running on xp, which i had pointed to a network drive that was actually a debian box with samba holding all the media.
at the time i was unaware of any decent upnp software to stream directly from the media array itself.
I will be playing with it a bit over the next few days when i find the time and if i come up with some answers for you or an alternative solution i shall let you know.
A Carafe of Ubuntu
Re: Howto: UPnP AV server/client in Ubuntu Breezy/D Pls Test
Awesome. Andy, I appreciate it.. I can understand on disliking the unit because of only WEP encryption. However, with my setup, it works perfectly. My TV sits right under it and all my boxes are in the living room. Plus, when I worked at CompUSA, it went discontinued through us, sat in the warehouse, then when it was time to send it back, I picked it up for 80 dollars, . I'm going to try and setup MythTV tonight, from reading another thread a subject close to this, it would be the software to use. I'll try and let
ya know on that if I like it or not.
Thanks again
Jump to page:未找到信息!
未找到信息!
收录 / 索引信息
未找到信息!
一般不超过80字符
网站关键词
一般不超过100字符
一般不超过200字符
同主机安全
虚假或欺诈网站
挂马或恶意网站
未存在违规内容
相关子域名
alexa排名趋势
服务器信息
服务器类型
源文件大小
压缩后大小
最后修改时间
关闭关闭关闭博客访问: 224108
博文数量: 598
注册时间:
ITPUB论坛APP
ITPUB论坛APP
APP发帖 享双倍积分
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Linux
SQL> declare& 2& lv_& 3& function fn_test return number& 4& is& 5& begin& 6&& return 1;& 7& end fn_& 8& begin& 9& select fn_test into lv_&10& dbms_output.put_line(lv_test);&11&&12& /&declarelv_function fn_test return numberisbegin&return 1;end fn_beginselect fn_test into lv_dbms_output.put_line(lv_test);&ORA-06550: line 10, column 8:PLS-00231: function 'FN_TEST' may not be used in SQLORA-06550: line 10, column 8:PL/SQL: ORA-00904: "FN_TEST": invalid identifierORA-06550: line 10, column 1:PL/SQL: SQL Statement ignored&SQL> SQL> declare& 2& lv_& 3& function fn_test return number& 4& is& 5& begin& 6&& return 1;& 7& end fn_& 8& begin& 9& lv_test :=fn_&10& dbms_output.put_line(lv_test);&11&&12& /&1&PL/SQL procedure successfully completed&SQL>
阅读(1022) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。

我要回帖

更多关于 h1z1test sever是什么 的文章

 

随机推荐