andybega / demspaces Goto Github PK
View Code? Open in Web Editor NEWHelper functions for the Demcratic Spaces project.
License: Other
Helper functions for the Demcratic Spaces project.
License: Other
To help with debugging, and especially checking how many parameters were retained. Some models are still essentially 0 covariate models. I would like to see how far back one has to scale lambda to change this.
outcome,from_year,for_years,gwcode,p_up,p_same,p_down
v2x_freexp_altinf,2011,2012 - 2013,2,0.020803108535437917,0.4791968914645621,0.5
Why is it always 0.5?
The number of components to extract right now is at default of 5, at some point make this an optional argument. Probably also take a look at components vs fraction variance captured for the states data to make a good new default value.
Right now even with 5 components the accuracy results are only a little bit worse than full saturated logistic regression.
Make RF tune itself, or at least provide some way to obtain info on tuning from a server run. The current version uses all out of the box default settings.
glmnet::cv.glmnet()
includes the minimum cost lambda value as well as the smallest lambda within 1 CV SE of that. Add a less conservative 0.5 CV SE option. See glmnet:::getmin()
:
function (lambda, cvm, cvsd)
{
cvmin = min(cvm, na.rm = TRUE)
idmin = cvm <= cvmin
lambda.min = max(lambda[idmin], na.rm = TRUE)
idmin = match(lambda.min, lambda)
semin = (cvm + cvsd)[idmin]
idmin = cvm <= semin
lambda.1se = max(lambda[idmin], na.rm = TRUE)
list(lambda.min = lambda.min, lambda.1se = lambda.1se)
}
The relevant code needs to go in reg_logreg()
.
See #2, might help with that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.