Giter VIP home page Giter VIP logo

Comments (5)

henon avatar henon commented on September 15, 2024 1

I will look into it.

from numpy.net.

Weikang01 avatar Weikang01 commented on September 15, 2024

By the way, I just find a temporary solution, which is using NDArray.shape[1] * np.mean(NDArray, axis=1) to replace the np.sum(NDArray, axis=1) statement.
image
But, since there are divisions involved, there may be some loss of accuracy for the final result, but this is the best solution I can think about right now.

from numpy.net.

Weikang01 avatar Weikang01 commented on September 15, 2024

Thank you, @henon ! Just to let you know, the version I'm using now is the NumSharp.0.30.0 installed from NuGet. Thank you again for your contribution!;)

from numpy.net.

henon avatar henon commented on September 15, 2024

Aha, you are not in the correct github repo, this is Numpy.NET not NumSharp. In Numpy.NET this code works without problems:

var test = np.ones(new Shape(2, 2));
Console.WriteLine(np.sum(test, axis: 1));

Output: [2. 2.]

from numpy.net.

Weikang01 avatar Weikang01 commented on September 15, 2024

Thank you, man! Your work is awesome! πŸ‘

from numpy.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.