cluster.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:pantip-libr 作者: starcolon 项目源码 文件源码
def new(method='centroid',n_features=8):

  # Clustering method
  nc = METHODS[method]

  # Orthogonal feature selector
  if n_features is None: n_features = 'all'
  selector = SelectKBest(f_classif, k=n_features)

  # NOTE: The only last operation of the list
  # must be a classifier or clustering model
  print(colored('Cluster model created','yellow'))
  return [selector, nc]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号