Coder Social home page Coder Social logo

Comments (10)

bytesnake avatar bytesnake commented on July 30, 2024 1

yes playing around with this right now, because it is a prerequisite for #66 I will open a PR once I have something useful

from linfa.

bytesnake avatar bytesnake commented on July 30, 2024 1

work started in #88, I think the basic mechanism is in place and I will finish the PR in the next days

from linfa.

relf avatar relf commented on July 30, 2024 1

A suggestion: now that we have several targets, we could have target_names as well.

from linfa.

bytesnake avatar bytesnake commented on July 30, 2024

Hey,
this wasn't considered for now but should be as multi-target prediction is very common.

The targets matrix can be 1, 2 or three dimensional in three different cases:

  • 1dim - 1 target per N observations
  • 2dim - M targets per N observations
  • 3dim - L probabilities for M targets per N observations

here is L the number of labels, M the number of targets and N the number of points. Because ndarray supports three dimensional arrays we should switch the Dataset definition to

pub type Dataset<D, T> = DatasetBase<ArrayBase<OwnedRepr<D>, Ix2>, ArrayBase<OwnedRepr<T>, Ix3>>;

and then update the whole machinery in linfa/dataset/.

from linfa.

bytesnake avatar bytesnake commented on July 30, 2024

I added a point to #70 for this feature

from linfa.

relf avatar relf commented on July 30, 2024

Ok thanks. I was too conservative and not aware of the third case (do you have an example in mind?)

I added a point to #70 for this feature

Does it mean you plan to work on that in the coming weeks?

from linfa.

bytesnake avatar bytesnake commented on July 30, 2024

finally merged #88, can you give feedback whether everything works as expected?

from linfa.

relf avatar relf commented on July 30, 2024

Ok, I will. I will resume my work on linnerud dataset. FYI, I am working on a port of PlsRegression which is tested against that dataset. If it goes well, maybe it could land in linfa? Where? A new member linfa-cross-decomposition or ...? What do you think?

from linfa.

bytesnake avatar bytesnake commented on July 30, 2024

sounds good, we should add CCA at a later point as well. If you want to implement the SVD version, you can use TruncatedSvd from ndarray-linalg

from linfa.

bytesnake avatar bytesnake commented on July 30, 2024

multi-target datasets were introduced #88 and a sample dataset added in #89. I also added a note in #70 regarding target naming

from linfa.

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.