我想了解 sklearn.cluster.KMeans 类中的参数max_iter。
根据文档:
max_iter : int, default: 300
Maximum number of iterations of the k-means algorithm for a single run.
Run Code Online (Sandbox Code Playgroud)
但在我看来,如果我有 100 个对象,代码必须运行 100 次,如果我有 10.000 个对象,代码必须运行 10.000 次才能对每个对象进行分类。另一方面,在所有对象上运行多次是没有意义的。
我的误解是什么,我该如何解释这个参数?
我正在尝试使用多种语言制作应用程序。
我按照文档说的做了,但没有用。
这是我的代码。
window.Vue = require('vue');
import Vuetify from './Vuetify/vuetify';
import en from './Vuetify/Lang/en/en.ts';
import es from './Vuetify/Lang/es/es.ts';
Vue.use(Vuetify, {
lang: {
locales: {
es,
en,
},
current: 'es'
}
})
const app = new Vue({
el: '#app',
components: {
"vue-landing": require('./components/ExampleComponent.vue'),
},
created() {
this.$vuetify.lang.current = 'es'
},
}).$mount('#app');
Run Code Online (Sandbox Code Playgroud)
在我的组件中
<template>
<v-content>
{{ $vuetify.t('noDataText') }}
</v-content>
</template>
Run Code Online (Sandbox Code Playgroud)
一切正常编译没有错误,但它不翻译任何东西。结果总是我在函数中写的。
在这种情况下,出现的是
无数据文本
我用K均值和silhouette_score从蟒蛇来计算我的群集sklearn,但> 10.000样品> 1000集群计算silhouette_score是很慢的。
python ×2
scikit-learn ×2
bigdata ×1
data-mining ×1
k-means ×1
parameters ×1
vue.js ×1
vuejs2 ×1
vuetify.js ×1