The sharing of resources about Statistical Learning Theory and Machine Learning(includeing SVM,Semi-Supervised Learning,Ensemble Learning,Clustering) ,welcome to contact and communicate with me: Email: xiankaichen@gmail.com,QQ:112035246,

Friday, November 14, 2008

How to write and add your own algorithm to Weka

Recently,I am studying the weka .My  purpose is that add my own algorithm to Weka.
  
I have collected some resource about these aspects from Weka website。 The links show as follow:
        In this webpage,it list many frequently asked questions by two catalogue:uing weka and developing weka
Due to siginificant changes in the API beyond version 3.5.2, there are now two different HOWTOs available.
Please choose the version of Weka you want to develop for:

As of Weka 3.4.4, all the derived classes of superclasses that can be edited in the GenericObjectEditor, like subclasses ofweka.classifiers.Classifier for instance, can be determined dynamically at runtime. Read here for more information.
Note: Weka 3.5.8 turned the automatic discovery off by default.

The GenericObjectEditor is the core component in Weka for modifying schemes, like classifiers and filters in the GUI. It has to be configured correctly in order to show default and additional schemes. See the following articles for more details:

My Experience:

1.netbean+weka for developing    english and chinese
2.if you want to use the weka3.5.8,due to Weka 3.5.8 turned the automatic discovery off by default.so you must make the adjust:
Automatic class discovery was turned off in 3.5.8. GUIs load faster   
without it turned on and it doesn't work when Weka is loaded as a   
plugin via a custom class loader. However, it is easily re-enabled. Just edit the   
GenericPropertiesCreator.props file (located in weka/gui) and change   
the "UseDynamic" property from "false" to "true". 

3.you can be easy to add a new algorithm to weka.if you are famliar with chinese .the follow website is a good introduction:http://blog.chinaunix.net/u1/34560/showart_269880.html
4.when adding a new algorithm to weka.you may take attention to the problem,namely ,that  your own algorithm can not display in the GUI(i.e  Exprolor) even you have modify the "UseDynamic".For this problem.you should adjust your new package's position,For Instance:you want to add a new package"weka.classifier.cxk".you must configure the GenericPropertiesCreator.props  again:
Original:
weka.classifiers.Classifier=\ 
weka.classifiers.bayes,\ 
weka.classifiers.functions,\
weka.classifiers.lazy,\
weka.classifiers.trees,\ 
weka.classifiers.meta,\
weka.classifiers.cxk,\
 weka.classifiers.rules
Modify

weka.classifiers.Classifier=\ 
weka.classifiers.cxk,\
weka.classifiers.bayes,\ 
weka.classifiers.functions,\
weka.classifiers.lazy,\
weka.classifiers.trees,\ 
weka.classifiers.meta,\
 weka.classifiers.rules

Wednesday, September 10, 2008

关于核矩阵的两种极端情况分析

核包括所有可能提供给学习机的关于输入在特征空间中的相对位置的信息。很自然的,如果要在数据集内发现几何结构,数据必须通过核矩阵展现这一结构。
如果这个核过于一般,对于具体类型的相似性没有给出足够的意义。用我们讨论先验知识的语言来说,这相当于为太多的分类赋予权重(可以看成是太多的坐标轴,即基太大)。所以,核把具有相等权值的任何一对输入看成相似(只有自己核自己相似)或者不相似(两两不同的向量是不相似的)。这样的核矩阵中除对角线以外的其他元素变得非常小,而同时对角线元素接近于1。因此核只能表示成单位矩阵的概念。这导致了过度拟合问题,因为我们把训练集正确分类很容易,但是核没有办法对新数据进行泛化处理。
另一种极端情况是,如果核矩阵是完全均一的,那么每一个输入都和每个其他的输入相似。这相当于每个输入都被映射到同一个特征向量,这导致数据欠拟,因为这是能够容易的表达出来的函数只有那些把所有的点都映射到同一个类的函数。
从几何上将,第一情形相当于把输入映射到特征空间中的标准正交点,而第二种情况,所有点都被合并到同一个映像。
这两种情况数据中都不存在非平凡的自然类,从而没 有真正的结构可以泛化。

Thursday, September 4, 2008

超星打印电子书问题

1.在控制面板/打印机/里面把我的Adobe PDF打印机改了一个另外的名字。然后进入超星重新选择打印,然后选择这个重命名以后的打印机,这个打印机是虚拟打印机了.

2.

在打印的时候,系统提示你已经达到了本月打印页数的最上限。

解决方法:

使用UltraEdit-32软件打开SsReader.exe 文件,选择搜索菜单下的查找命令,

在查找栏输入 750D8B0764A3 查找,

将搜索到的第一个750D8B0764A3中的0D改为2A ,最后存盘即可!
该方法目前适合超星3.9~4.0.

Tuesday, September 2, 2008

正交函数,正交函数集 以及例子


 

一、函数正交的定义

若有定义在 区间两个函数 ,满足

则称 在区间 内正交.

二、正交函数集

设有 个函数 构成一个函数集且这些函数在区间

满足

则称此函数集为在区间 的正交函数集

三、完备的正交函数集

若在正交函数 之外,不存在函数 满足等式

则此函数集称为完备正交函数集

例子:

常用的完备正交函数集有:

1、三角函数集

在区间 (式中 )组成完备正交函数集。

2、复指数函数集

在区间 (式中 )组成完备正交函数集。

Friday, August 8, 2008

slt source

It's a good source which statement about statical learning theory.
link:http://www.mit.edu/~9.520/