因为scala的array就是在java array的基础上的,所以hashcode直接用的就是java定义的hashcode。而java的array.hashcode()
就是根据数组的引用地址计算的,而不是根据数据的内容。
解决方案:
- 转成asjava,用
java.util.Arrays.hashcode()
- 转成Seq或者list
- 重写hashcode,但是数组计算hashcode效率会变差
人生三件快事:吃,睡,打代码
因为scala的array就是在java array的基础上的,所以hashcode直接用的就是java定义的hashcode。而java的array.hashcode()
就是根据数组的引用地址计算的,而不是根据数据的内容。
解决方案:
java.util.Arrays.hashcode()
Background:以pokeman go为例学习regression。对pokeman进化后的cp值问题建模。
训练数据有十只不同pokeman,它们有初始cp值及其他各种属性。
machine learning: look for a function to do something like speech recognition etc.
more >>Terminology:
Distributed System: a collection of autonomous computing elements that appears to users as a single coherent system.
more >>tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true