rudder
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Java Machine Learning / Optimization package
Rudder is a meant to provide a machine learning framework and 
package.  Using rudder you can extend a base record class and
use annotations to define your features and labels, then pass
those records into an analytics algorithm without having to 
write any additional connectors.


There will also be a few utilities that will come in and out of 
existence as this project grows and is refined.

Everything in this framework should be thread safe, if you find something
that is not, please post an issue, a patch, or a unit test illustrating
the issue.

Example of running clustering


	class MyRecordClass  {
		@Feature
		double myFeature1
		@Feature
		double myFeature2
		@Feature
		double myFeature3
		@Label(setlabel="setLabel")
		String myLabel;	
		Object nonFeatureItem;
		String nonFeatureOrLabelString;
		
		void setLabel(String label);
		
		//Only use non-primitives in the set method signature
		void setLabel(Double doubleLabel);
		
		//Other stuff I want to do
		
		//This API uses equals often, so your object should override it
		boolean equals(Object o);
	}

	class MyClusterRunner {
		public static void main(String[] args) {
			double epsilon = 4d;  //Maximum distance between records in a cluster
			int minClusterSize = 3;  //Minimum number of records in a cluster
			IRudderList myRecords = new RudderList();
			//populate your object	
			DBScan dbscan = new DBScan(epsilon, minClusterSize);
			db.setSourceData(list);
			ArrayList clusters = db.getClusters();	
			//do stuff with your clusters i.e. print record label and cluster
			for(int i=0; i  
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。