資源簡介
使用weka.jar包,只有兩個java文件,有一個是House類(定義一個樣本及其屬性),還有一個就是基于House類生成每一個樣本的arff文件代碼

代碼片段和文件信息
package?weka_hello;
public?class?House?{
public?int?houseSize;
public?int?lotSize;
public?int?bedrooms;
public?int?granite;
public?int?bathroom;
public?int?sellingPrice;
public?House(int?houseSize?int?lotSize?int?bedrooms?int?granite?int?bathroom?int?sellingPrice)?{
super();
this.houseSize?=?houseSize;
this.lotSize?=?lotSize;
this.bedrooms?=?bedrooms;
this.granite?=?granite;
this.bathroom?=?bathroom;
this.sellingPrice?=?sellingPrice;
}
public?int?getHouseSize()?{
return?houseSize;
}
public?void?setHouseSize(int?houseSize)?{
this.houseSize?=?houseSize;
}
public?int?getLotSize()?{
return?lotSize;
}
public?void?setLotSize(int?lotSize)?{
this.lotSize?=?lotSize;
}
public?int?getBedrooms()?{
return?bedrooms;
}
public?void?setBedrooms(int?bedrooms)?{
this.bedrooms?=?bedrooms;
}
public?int?getGranite()?{
return?granite;
}
public?void?setGranite(int?granite)?{
this.granite?=?granite;
}
public?int?getBathroom()?{
return?bathroom;
}
public?void?setBathroom(int?bathroom)?{
this.bathroom?=?bathroom;
}
public?int?getSellingPrice()?{
return?sellingPrice;
}
public?void?setSellingPrice(int?sellingPrice)?{
this.sellingPrice?=?sellingPrice;
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-09-03?08:50??weka_hello\
?????文件?????????374??2017-07-20?22:09??weka_hello\.classpath
?????文件?????????386??2017-07-20?22:08??weka_hello\.project
?????目錄???????????0??2017-07-20?22:08??weka_hello\.settings\
?????文件?????????598??2017-07-20?22:08??weka_hello\.settings\org.eclipse.jdt.core.prefs
?????目錄???????????0??2017-08-28?14:44??weka_hello\bin\
?????目錄???????????0??2017-08-28?14:44??weka_hello\bin\weka_hello\
?????文件????????1585??2017-08-28?14:44??weka_hello\bin\weka_hello\House.class
?????文件????????3117??2017-08-28?14:44??weka_hello\bin\weka_hello\Main.class
?????目錄???????????0??2017-09-03?08:50??weka_hello\lib\
?????文件????11025147??2016-12-19?06:17??weka_hello\lib\weka.jar
?????目錄???????????0??2017-07-20?22:09??weka_hello\src\
?????目錄???????????0??2017-07-21?11:33??weka_hello\src\weka_hello\
?????文件????????1283??2017-07-21?14:02??weka_hello\src\weka_hello\House.java
?????文件????????2329??2017-07-21?14:10??weka_hello\src\weka_hello\Main.java
- 上一篇:公交查詢系統工程文件
- 下一篇:MPChart源碼
評論
共有 條評論