ARFF 文件中可用于数值的最低和最高值是多少?

What is the lowest and highest value you can use for numeric values in an ARFF file?

我正在使用 Weka,想知道数字属性类型的限制是什么。这是针对 ARFF 文件格式的。

比如,你可以使用负数吗?您可以使用的最高数字是多少?在开始处理非常大的数字之前,我需要知道这一点。不幸的是,我的 Weka 教科书没有列出数字类型的限制。

数字属性可以是实数或整数值。关于最大值,我在 Weka 开发人员文档中找到了这个。

@attribute temperature real
@attribute humidity real

These lines define two numeric attributes. Instead of real, integer or numeric can also be used. While double floating point values are stored internally, only seven decimal digits are usually processed.

因此 JVM 会将加载的任何值视为双精度浮点值,但如果您的小数位超过七位,则数字可能会被截断。