Giter VIP home page Giter VIP logo

rcmdrplugin.optimclassifier's People

Contributors

andrewheiss avatar economistgame avatar

Forkers

andrewheiss

rcmdrplugin.optimclassifier's Issues

Optim.LMM possibly conflicting with other R Commander packages

When running Optim.LMM() after loading RcmdrPlugin.OptimClassifier, it occasionally gives errors. I'm guessing there's some sort of package namespace conflict behind the scenes, but I can't uncover it. The model works fine when run manually with just the OptimClassifier library.

Here's a reproducible example using OptimClassifier 0.1.4 and RcmdrPlugin.OptimClassifier 0.1.2:

# This works
library(OptimClassifier)
modelFit <- Optim.LMM("Y", AustralianCredit, p = 0.7, seed = 2018)
summary(modelFit)

# Start a new session of R. This doesn't work
library(RcmdrPlugin.OptimClassifier)
modelFit <- Optim.LMM("Y", AustralianCredit, p = 0.7, seed = 2018)
#> Error in eval(predvars, data, env) : object 'X4' not found

Review issue: openjournals/joss-reviews#727

Unable to create diagnostic plots for DA models

When running "Models" > "Graphs" > "Basic diagnostic plots" on a discriminant analysis model (or when just running plot(), plotting fails.

OptimDA2 <- Optim.DA(Y~X1+X2+X3+X4+X5+X6+X7+X8+X9+X10+X11+X12+X13+X14, 
                     data=AustralianCredit, p=0.7, criteria='rmse',seed=2018)
#> Error in rep("darkgrey", nrow(Files) - 2) : invalid 'times' argument

Review issue: openjournals/joss-reviews#727

Optim.LM dialog doesn't create a matrix-based formula

This may be an issue with OptimClassifier 0.1.4, but it also has a Rcmdr component. OptimClassifier::Optim.LM() says that it takes a formula as an argument, but when you pass a formula, it complains that the formula object is not a matrix:

Optim.LM(Y ~ X1 + X2 + X3 + X4 + X5 + X6, data = AustralianCredit, p = 0.7, 
         criteria = 'success_rate', seed = 2018)
#> Error in model.frame.default(formula = ModelsTested$train_formula[[i]],  : 
#> object is not a matrix

As a result, it's not currently possible to select a few variables using R Commander. For instance, this:

image

…results in this:

image

Optim.LM() does work if the formula uses a . for the RHS, but there's no way to generate that with R Commander—selecting all the variables just concatenates them into a long formula:

# This works, but can't be generated with R Commander
Optim.LM(Y~., AustralianCredit, p = 0.7, seed = 2018)

# This doesn't work, but it's what R Commander generates
# Optim.LM(Y~X1+X2+X3+X4+X5+X6+X7+X8+X9+X10+X11+X12+X13+X14, 
#          AustralianCredit, p = 0.7, seed = 2018)

Review issue: openjournals/joss-reviews#727

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.