# algorithmStar
**Repository Path**: BeardedManZhao/algorithmStar
## Basic Information
- **Project Name**: algorithmStar
- **Description**: Toolkits for various algorithms, support vector computing and other functions, machine learning and mathematics, medicine, artificial intelligence and other fields of high practicality. | 用于各种算法、支持向量计算等功能,机器学习和数学、医学、人工智能等领域具有很高的实用性。
- **Primary Language**: Java
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-10-26
- **Last Updated**: 2024-12-30
## Categories & Tags
**Categories**: Uncategorized
**Tags**: Java, 人工智能, 机器学习, 大数据, 模型预测
## README
#  Algorithm Star-MachineBrain
- 切换到 [中文文档](https://github.com/BeardedManZhao/algorithmStar/blob/main/README-Chinese.md)
- knowledge base
The AS machine learning library provides a Java API for various machine learning algorithms. It has the encapsulation of
complex computing logic such as machine vision and natural language processing. Through the library, various algorithms
can be quickly used to achieve various effects. Many calculation operations in the AS library are implemented natively,
enabling the operation of library functions without unexpected dependencies from the Java standard library.
There are multiple versions of the AS library directory. If you want to query the update logs and differences of
different versions, you can [view](https://github.com/BeardedManZhao/algorithmStar/tree/master/src_code/update) here.
A [test dataset](https://github.com/BeardedManZhao/algorithmStar/blob/master/sourceMaterial.md) is provided in this
warehouse, which contains various data files such as images. You can pull these test data into a local program through a
URL for calculation.
## Notification
> ⚠️ 【 Important 】 The content of versions 1.32 and 1.40 is almost identical, with the main difference being the changes
> to the package module. Please note that we will refactor the package name
> to ` io. github. beardedManZhao. algorithmStar ` in versions 1.40 and all subsequent versions to avoid conflicting
> package names in many Java dependencies~
>
>To avoid any compatibility issues caused by package updates, we have provided version 1.32. You can continue to use the
> old package name, but we strongly recommend using the new version, as the new package name has been updated to 'io.
> github. beardedManZhao. algorithmStar'. If you have any questions or suggestions about changing the package name or
> updating, please contact us in a timely manner!!
## Maven dependency
You can integrate Arithmetic Star into your project through maven, and the configuration of Maven is shown below. You
can add it to your maven project, or you can download it from Releases and manually integrate it into your project.
```xml
io.github.BeardedManZhaoalgorithmStar1.44
```
### Required dependencies of the AS library
After version 1.17, all dependencies of the AS library have been stripped to better avoid binding dependencies and
reduce the possibility of project conflicts. At the same time, more suitable dependency configuration items can be used
according to the needs of developers. You can view third-party library dependencies on which the AS library depends
here.
#### Required Dependencies
> Note: log4j2 does not need to be imported in versions 1.43 and later!!! To enhance performance, log4j2 has been removed in version 1.43!
The AS library generates some log data when performing many calculation functions. Therefore, the use of the AS library
requires importing log dependencies, which are essential. Please import the dependencies as follows.
```xml
org.apache.logging.log4jlog4j-slf4j-impl2.20.0org.apache.logging.log4jlog4j-api2.20.0org.apache.logging.log4jlog4j-core2.20.0
```
#### Optional Dependencies
When interfacing with various platforms such as databases and Sparks, the AS library needs to use third-party dependency
packages, which are optional. If you do not need to use these functions, you may not need to import dependencies. If you
need to, you can refer to the following configuration.
```xml
mysqlmysql-connector-java8.0.30org.apache.sparkspark-core_2.123.4.0org.apache.sparkspark-sql_2.123.4.0org.apache.sparkspark-mllib_2.123.4.0com.github.sarxoswebcam-capture0.3.12org.apache.hadoophadoop-client3.3.1
```
## Use API examples
### Download help documents
After loading the AS library, you can use the following code to download all the help documents to your local computer. There are some sample codes to guide you in using them, and you can make modifications according to your own needs.
```java
package io.github.beardedManZhao.algorithmStar;
import io.github.beardedManZhao.algorithmStar.algorithm.distanceAlgorithm.EuclideanMetric;
import io.github.beardedManZhao.algorithmStar.algorithm.distanceAlgorithm.ManhattanDistance;
import io.github.beardedManZhao.algorithmStar.algorithm.featureExtraction.WordFrequency;
import io.github.beardedManZhao.algorithmStar.core.AlgorithmStar;
import io.github.beardedManZhao.algorithmStar.operands.matrix.ColumnIntegerMatrix;
public final class MAIN1 {
public static void main(String[] args) {
// 准备两个文本组成的数组,其中是两个需要被处理成为特征向量的字符串语句。
String[] data = {
"Good evening, dear, don't forget the agreement between us. It's 9:00 tomorrow morning.",
"Good morning, dear, don't forget the agreement between us, at 9:00 in the morning."
};
AlgorithmStar