GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 42MachineLearning/NumSharp: NumPy + SciPy in .NET Core. Tensor computation library used by other SciSharp projects.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

617 Commits
617 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
docfx_project
docfx_project
 
 
docs
docs
 
 
src
src
 
 
test
test
 
 
.appveyor.yml
.appveyor.yml
 
 
.gitignore
.gitignore
 
 
Benchmark.ps1
Benchmark.ps1
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
ExecuteBuild.ps1
ExecuteBuild.ps1
 
 
ExecuteUnitTests.ps1
ExecuteUnitTests.ps1
 
 
GenerateCode.ps1
GenerateCode.ps1
 
 
GenerateDoc.ps1
GenerateDoc.ps1
 
 
LICENSE
LICENSE
 
 
NumSharp.sln
NumSharp.sln
 
 
README.md
README.md
 
 
ValidatePackage.ps1
ValidatePackage.ps1
 
 

Repository files navigation

NumSharp

NumPy port in C# .NET Standard

Join the chat at https://gitter.im/publiclab/publiclab AppVeyor codecov NuGet

Is it difficult to translate python machine learning code into C#? Because too many functions can’t be found in the corresponding code in the .Net SDK. NumSharp is the C# version of NumPy, which is as consistent as possible with the NumPy programming interface, including function names and parameter locations. By introducing the NumSharp tool library, you can easily convert from python code to C# code. Here is a comparison code between NumSharp and NumPy (left is python, right is C#):

comparision

If you want to read some more informations, we start a doc on https://scisharp.github.io/NumSharp/.

NumSharp has implemented the arange, array, max, min, reshape, normalize, unique interfaces. More and more interfaces will be added to the library gradually. If you want to use .NET to get started with machine learning, NumSharp will be your best tool library.

Implemented APIs

The NumPy class is a high-level abstraction of NDArray that allows NumSharp to be used in the same way as Python's NumPy, minimizing API differences caused by programming language features, allowing .NET developers to maximize Utilize a wide range of NumPy code resources to seamlessly translate python code into .NET code.

  • NumPy
    • absolute
    • amax
    • amin
    • arange
    • array
    • hstack
    • linspace
    • max
    • power
    • random
      • normal
      • randint
      • randn
      • stardard_normal
    • reshape
    • sin
    • vstack
    • zeros

How to use

using NumSharp.Core;
// create a vector
var nd = np.arange(12)

// create a matrix
nd = np.arange(12).reshape(3, 4);

// access data by index
var data = nd[1, 1];

// create a tensor
nd = np.arange(12).reshape(2, 3, 2);

// get the 2nd vector in the 1st dimension
data = n[new Shape(1)];

// get the 3rd vector in the (axis 1, axis 2) dimension
data = n[new Shape(1, 2)];

// interate ndarray
foreach (data in nd)
{
  // data is a ndarray or a value
}

Install NumSharp in NuGet

PM> Install-Package NumSharp

How to make docs

  • Download docfx and put on PATH → https://github.com/dotnet/docfx/releases
  • docfx ./docfx_project/docfx.json -o ./docs

How to run benchmark

C: \> dotnet NumSharp.Benchmark.dll nparange

Reference the documents generated by DocFX.

Reference the documents host on readthedocs.io.

NumSharp is referenced by:

  • Pandas.NET
  • SciSharp-Learn
  • TensorFlow.NET
  • Bigtree.MachineLearning
  • CherubNLP
  • BotSharp

NumSharp is a member project of SciSharp.org which is the .NET based ecosystem of open-source software for mathematics, science, and engineering. Welcome to fork and pull request to add more APIs, and make reference list longer.

Star me on Github if you like it.

Scan QR code to join TIM group:

SciSharp STACK

About

NumPy + SciPy in .NET Core. Tensor computation library used by other SciSharp projects.

github.com/SciSharp

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.