ARFF檔案格式

2022-08-09 19:33:13 字數 1558 閱讀 4125

attribute -relation file format (arff)

此文件翻譯自

。文件寫的比較粗糙,敬請原諒。

可以推薦一篇文件寫的還不錯:

1、arff

頭章節包括關係宣告和屬性宣告

關係宣告(@ralation declaration

)關係宣告在arff

檔案的第一行定義。格式如下:

@relation

是乙個字串。如果名字包含空格,那麼這個字串必須加引號。

屬性宣告(the @attribute decarations

)屬性宣告是以乙個有序的屬性陳列的形式表述的。資料中的每乙個屬性都有它自己的@attribute

宣告,以確保獨立的定義那個屬性和它的資料型別。

@attribute

宣告的格式為

@attribute

此處,必須以字母開頭。如果名字中包含空格,那麼整個名字必須加引號。

可以是以下weka

(version 3.2.1

)包含的任意的資料形式

2、然後就是arff

資料章節也就是資料部分@data declaration

資料宣告是以@data

作為乙個單獨的行來分割檔案的。

下面給出乙個arff

檔案格式的例子

% 1. title: iris plants database

% % 2. sources:

% (a) creator: r.a. fisher

% (b) donor: michael marshall (marshall%[email protected])

% (c) date: july, 1988

% @relation iris

@attribute sepallength numeric

@attribute sepalwidth numeric

@attribute petallength numeric

@attribute petalwidth numeric

@attribute class

thedataof the arff file looks like the following:

@data

5.1,3.5,1.4,0.2,iris-setosa

4.9,3.0,1.4,0.2,iris-setosa

4.7,3.2,1.3,0.2,iris-setosa

4.6,3.1,1.5,0.2,iris-setosa

5.0,3.6,1.4,0.2,iris-setosa

5.4,3.9,1.7,0.4,iris-setosa

4.6,3.4,1.4,0.3,iris-setosa

5.0,3.4,1.5,0.2,iris-setosa

4.4,2.9,1.4,0.2,iris-setosa

4.9,3.1,1.5,0.1,iris-setosa

Oracle 控制檔案格式ctl檔案格式

options skip 1,errors 10 load data characterset zhs16gbk infile into table table name truncate fields terminated by optionally enclosed by trailing nu...

檔案格式 gff格式

gff檔案格式 gff格式是 sanger 研究所定義,是一種簡單的 方便的對於 dna rna以及蛋白質序列的特徵進行描述的一種資料格式,已經成為序列注釋的通用格式,比如基因組的基因 許多軟體都支援輸入或者輸出gff格式。前格式定義的最新版本是版本3。原始定義見 song websitegff是存...

生成arff檔案,csv轉為arff

一 什麼是arff格式檔案 1 arff是attribute relation file format縮寫,從英文本面也能大概看出什麼意思。它是weka資料探勘開源程式使用的一種檔案模式。由於weka是個很出色的資料探勘開源專案,所以使用的比較廣,這也無形中推廣了它的資料儲存格式。2 下面是weka...