Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SciSharp/SiaNet
An easy to use C# deep learning library with CUDA/OpenCL support
https://github.com/SciSharp/SiaNet
artificial-intelligence cognitive-services deep-learning deep-neural-network image-classification image-processing machine-learning neural-network object-detection
Last synced: 9 days ago
JSON representation
An easy to use C# deep learning library with CUDA/OpenCL support
- Host: GitHub
- URL: https://github.com/SciSharp/SiaNet
- Owner: SciSharp
- License: mit
- Archived: true
- Created: 2017-10-23T23:30:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-30T10:53:17.000Z (over 5 years ago)
- Last Synced: 2024-05-02T02:14:01.235Z (6 months ago)
- Topics: artificial-intelligence, cognitive-services, deep-learning, deep-neural-network, image-classification, image-processing, machine-learning, neural-network, object-detection
- Language: C#
- Homepage: https://scisharp.github.io/SiaNet
- Size: 73.1 MB
- Stars: 378
- Watchers: 51
- Forks: 97
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-dotnet-core - SiaNet - A C# deep learning library, human friendly, CUDA/OpenCL supported, well structured, easy to extend (Frameworks, Libraries and Tools / Machine Learning and Data Science)
- awesome-dotnet-core - SiaNet - 具有CUDA / OpenCL支持的易于使用的C#深度学习。 (框架, 库和工具 / 机器学习和科学研究)
- fucking-awesome-dotnet-core - SiaNet - A C# deep learning library, human friendly, CUDA/OpenCL supported, well structured, easy to extend (Frameworks, Libraries and Tools / Machine Learning and Data Science)
- awesome-dotnet-core - SiaNet - A C# deep learning library, human friendly, CUDA/OpenCL supported, well structured, easy to extend (Frameworks, Libraries and Tools / Machine Learning and Data Science)
README
[![Join the chat at https://gitter.im/publiclab/publiclab](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sci-sharp/community)
[![Build status](https://dev.azure.com/deepakkumarb/SIA/_apis/build/status/SiaNet%20Beta%200.4.1)](https://dev.azure.com/deepakkumarb/SIA/_build/latest?definitionId=4)
![Build Status](https://travis-ci.org/SciSharp/SiaNet.svg?branch=master)
[![Backers on Open Collective](https://opencollective.com/sianet/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/sianet/sponsors/badge.svg)](#sponsors)[](https://siadroid.slack.com/messages/CGL4QULPM)
Trello is used to track SiaNet devlopment activities. You are welcome to watch any task and track progress. Suggestion will be put on the wishlist and then will be planned out for development
https://trello.com/b/bLbgQLgy/sianet-development
# A C# deep learning library
Developing a C# wrapper to help developer easily create and train deep neural network models.
* Easy to use library, just focus on research
* Multiple backend - CNTK, TensorFlow, MxNet, PyTorch, ArrayFire
* CUDA/ OpenCL support for some of the backends
* Light weight libray, built with .NET standard 2.0
* Code well structured, easy to extend if you would like to extend with new layer, loss, metrics, optimizers, constraints, regularizer# A Basic example
The below is a classification example with Titanic dataset. Able to reach 75% accuracy within 10 epoch.
```c#
//Setup Engine. If using TensorSharp then pass SiaNet.Backend.TensorSharp.SiaNetBackend.Instance.
//Once other backend is ready you will be able to use CNTK, TensorFlow and MxNet as well.
Global.UseEngine(SiaNet.Backend.ArrayFire.SiaNetBackend.Instance, DeviceType.CPU);var dataset = LoadTrain(); //Load train data
var test = LoadTest(); //Load test datavar (train, val) = dataset.Split(0.25);
//Build model
var model = new Sequential();
model.EpochEnd += Model_EpochEnd;
model.Add(new Dense(128, ActivationType.ReLU));
model.Add(new Dense(64, ActivationType.ReLU));
model.Add(new Dense(1, ActivationType.Sigmoid));//Compile with Optimizer, Loss and Metric
model.Compile(OptimizerType.Adam, LossType.BinaryCrossEntropy, MetricType.BinaryAccurary);// Train for 100 epoch with batch size of 32
model.Train(train, 100, 32, val);var predictions = model.Predict(test);
predictions.Print();
```
### Training Result![Figure 1-1](https://i.ibb.co/KG87pv4/Titanic-1.png "Figure 1-1")
Complete Code: https://github.com/SciSharp/SiaNet/blob/master/Examples/BasicClassificationWithTitanicDataset/Program.cs
More examples: https://github.com/SciSharp/SiaNet/blob/master/Examples
# API Docs
https://scisharp.github.io/SiaNet/# Contribution
Any help is welcome!!!