Skip to content

SciSharp/SciSharp-Stack-Examples

Repository files navigation

SciSharp STACK Examples

This repo contains many practical examples written in SciSharp's machine learning libraries. If you still don't know how to use .NET for deep learning, getting started from these examples is your best choice.

Join the chat at https://gitter.im/publiclab/publiclab

Requirements:

Run specific example in shell:

C#

:: run all examples from source code
dotnet run --project src/TensorFlowNET.Examples

:: run specific example
dotnet run --project src/TensorFlowNET.Examples -ex "Linear Regression (Graph)"

:: run in compiled library
dotnet TensorFlowNET.Examples.dll -ex "MNIST CNN (Eager)"

F#

:: run all examples from source code
dotnet run --project src/TensorFlowNET.Examples.FSharp

:: run specific example
dotnet run --project src/TensorFlowNET.Examples.FSharp -ex "Linear Regression (Eager)"

:: run in compiled library
dotnet TensorFlowNET.Examples.FSharp.dll -ex "MNIST CNN (Eager)"

Example runner will download all the required files like training data and model pb files.

Basic Model

  • Hello World C#, F#
  • Basic Operations C#, F#
  • Linear Regression in Graph mode C#, F#
  • Linear Regression in Eager mode C#, F#
  • Linear Regression in Keras C#
  • Logistic Regression in Graph mode C#, F#
  • Logistic Regression in Eager mode C#, F#
  • Nearest Neighbor C#, F#
  • Naive Bayes Classification C#, F#
  • K-means Clustering C#

Neural Network

  • Full Connected Neural Network in Eager mode C#, F#
  • Full Connected Neural Network (Keras) C#, F#
  • NN XOR C#
  • Object Detection in MobileNet C#
  • MNIST FNN in Keras Functional API C#, F#
  • MNIST CNN in Graph mode C#, F#
  • MNIST CNN in Eager mode C#, F#
  • MNIST CNN in Keras SubClass C#, F#
  • MNIST RNN C#
  • MNIST LSTM C#
  • Image Classification in Keras Sequential API C#, F#
  • Image Recognition Inception C#, F#
  • Toy ResNet in Keras Functional API C#, F#
  • Transfer Learning for Image Classification in InceptionV3 C#
  • CNN In Your Own Dataset C#, F#

Natural Language Processing

  • Binary Text Classification C#
  • CNN Text Classification C#
  • Named Entity Recognition C#

Time Series

  • Weather Prediction (CNN, RNN) C#

Welcome to PR your example to us.

Your contribution will make .NET community better than ever.