Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 12, 2020. It is now read-only.
/SiaNetPublic archive

An easy to use C# deep learning library with CUDA/OpenCL support

License

NotificationsYou must be signed in to change notification settings

SciSharp/SiaNet

Join the chat at https://gitter.im/publiclab/publiclabBuild statusBuild StatusBackers on Open CollectiveSponsors on Open Collective

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.

//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);vardataset=LoadTrain();//Load train datavartest=LoadTest();//Load test datavar(train,val)=dataset.Split(0.25);//Build modelvarmodel=newSequential();model.EpochEnd+=Model_EpochEnd;model.Add(newDense(128,ActivationType.ReLU));model.Add(newDense(64,ActivationType.ReLU));model.Add(newDense(1,ActivationType.Sigmoid));//Compile with Optimizer, Loss and Metricmodel.Compile(OptimizerType.Adam,LossType.BinaryCrossEntropy,MetricType.BinaryAccurary);// Train for 100 epoch with batch size of 32model.Train(train,100,32,val);varpredictions=model.Predict(test);predictions.Print();

Training Result

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!!!

Packages

No packages published

Contributors6

Languages


[8]ページ先頭

©2009-2025 Movatter.jp