KMeans-Implementation

  • S1_514622
    了解作者
  • 86.1KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-15 03:40
    上传日期
KMeans-实现 这是JAVA中KMeans聚类算法的简单实现。 尽管它仅用于学术目的并且是这个小项目的主要原因,但它也显示了以下一些基本用法: Spring IoC 容器的基本用法仅使用依赖注入功能来管理 bean。 通过 EasyMock 使用模拟方法通过 JUnit 进行代码覆盖 使用标准故障安全 maven 插件方法或 JUnit 类别注释方法实现示例集成测试 该项目是在 Eclipse Indigo 上完成的。 要导入它,只需克隆存储库并在 Eclipse 上,选择导入/现有 Maven 项目 该项目在默认包中有一个 Main 类,它显示了如何调用实现的 KMeans 服务。 在文件夹 src/test/resources 中有一个名为 Iris_Sin.csv 的文件供您使用。 此外,还有一个名为 KMeans-example.xls 的文件,其中包含将 kmeans
KMeans-Implementation-master.zip
内容介绍
KMeans-Implementation ===================== This is a simple implementation of the KMeans clustering algorithm in JAVA. Altough it is just for academic purposes and is the main reason of this little project, it shows also some basic usage of the following: * Basic usage of Spring IoC container using just dependency injection feature for managing beans. * Code coverage through JUnit using a mocking approach through EasyMock * Implementation of a sample integration test using either a standard failsafe maven plugin approach or a JUnit category annotation approach The project was done on Eclipse Indigo. To import it just clone the repository and on Eclipse, select Import / Existing Maven Projects The project has a Main class in the default package which shows how to invoke the KMeans service implemented. There is a file in the folder src/test/resources named Iris_Sin.csv for you to play with. Also, there is a file called KMeans-example.xls which has an example of an applied kmeans algorithm to a set of patterns. The information contained in this spreadsheet is the base of the unit tests. Please refer to it when looking at the unit testing classes.
评论
    相关推荐