在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):goessl/MachineLearning开源软件地址(OpenSource Url):https://github.com/goessl/MachineLearning开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):Machine LearningDeprecatedThis repository is deprecated! Please use NeuralNetwork instead! Java collection that provides Java packages for developing machine learning algorithms and that is
Getting StartedPrerequisitesThis project is written in pure vanilla Java so there is nothing needed than the standard libraries. InstallationJust add all packages with the source files in the Source folder /src to your project and you are ready to go! Every class has a main test method. After installation just run any class so you can check if the installation was successful. Code ExampleNeural NetworkInitialize a new network with a given architecture (number or inputs, number of neurons in the hidden layers and each layers activation function) (If you don't know what to choose, here is a rule of thumb for a average looking network:
Then you can seed the weights in the network (= randomize it).
Prepare your training data and put it into a [Matrix] (src/main/java/neural/Matrix.java)
Now your network is ready for training! Just tell it how drastic the changes should be, give it the training data and if it should print it's progress to the console.
Now the network should be trained so let's have a look at the network itself by simply printing a basic representation and try forwarding the inputs.
And if we would like to get the mean squared error we just call the cost function on some data:
ContributorsThe two people who inspired me to try making my own machine learning project are Brandon Rohrer and Stephen Welch. Both make awesome YouTube videos that explain how machine learning works. Brandon Rohrer:
Stephen Welch:
License (MIT)MIT License Copyright (c) 2017 Sebastian Gössl Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论