Git Product home page Git Product logo

kfda's Introduction

KawinNikomborirak

Getting Started

  1. Download and run the installation script: $ echo Success!
  2. If Success! was printed to your screen, you are all set! If not, a useful debugging step is to try running this in a docker environment or virtual machine.

Documentation

You can read the autogenerated docs at concavegit.readthedocs.io.

Issues

File any bugs or errors at the issues page.

kfda's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kfda's Issues

problem

cls = Kfda(kernel='rbf', n_components=3)
clf = cls.fit_transform(X_train, y_train)
TypeError: np.matrix is not supported. Please convert to a numpy array with np.asarray.

Although I have converted the data to np.array, he still reminded me that I do not support np.matrix, Please convert to a numpy array with np.array.
These codes used to work normally, but now they keep reporting this error. I look forward to your help to solve this problem. Thank you.

Error in simple demonstration

Hi there,

Thank you for providing this tool. However, when I test the tool using simple input, I got an error:

cls = Kfda(kernel='rbf', n_components=2)
train_embeddings = cls.fit_transform(X, y)

TypeError Traceback (most recent call last)
in
1 cls = Kfda(kernel='rbf', n_components=2)
----> 2 train_embeddings = cls.fit_transform(X, y)

~/opt/anaconda3/lib/python3.7/site-packages/sklearn/base.py in fit_transform(self, X, y, **fit_params)
554 else:
555 # fit method of arity 2 (supervised transformation)
--> 556 return self.fit(X, y, **fit_params).transform(X)
557
558

~/opt/anaconda3/lib/python3.7/site-packages/kfda/kfda.py in transform(self, X)
115 projected onto the fisher directions.
116 """
--> 117 check_is_fitted(self)
118 return pairwise_kernels(
119 X, self.X_, metric=self.kernel, **self.kwds

TypeError: check_is_fitted() missing 1 required positional argument: 'attributes'

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.