Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to load? #10

Open
compleathorseplayer opened this issue Dec 30, 2020 · 3 comments
Open

How to load? #10

compleathorseplayer opened this issue Dec 30, 2020 · 3 comments

Comments

@compleathorseplayer
Copy link

How does one load the development version, which seems to have been updated?
I wonder if that could be added to the documentation for those that aren't familiar with this?

@compleathorseplayer
Copy link
Author

Figured this out:

Pkg.add(url="https://github.com/trthatcher/DiscriminantAnalysis.jl",rev="dev")

This loads OK, and the following does not give error

using DiscriminantAnalysis

but when I try to run

> lda(X,y)

UndefVarError: lda not defined

Any suggestions would be appreciated (thanks in advance!)

@trthatcher
Copy link
Owner

trthatcher commented Jan 6, 2021

Hello again!

If you're running Julia 1.0, you should be able to install the package without specifying the revision:

Pkg.add(url="https://github.com/trthatcher/DiscriminantAnalysis.jl")

I've also updated the README to demonstrate how to use the low-level interface for the LDA solver. Presently, there is no public-facing interface (ie no lda function at this point in time). However, it should be simple to implement an interface so I will do that for this weekend so there's a more user-friendly way to run everything.

@trthatcher
Copy link
Owner

I've updated the package and added an lda function and a classify function.

You will need to call DiscriminantAnalysis.lda, DiscriminantAnalysis.classify and DiscriminantAnalysis.posteriors to use them or manually import them via using DiscriminantAnalysis: lda, posteriors, classify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants