Giter VIP home page Giter VIP logo

avrbst's People

Contributors

rknx avatar

Stargazers

 avatar

Watchers

 avatar

avrbst's Issues

Cross validation

Calculate the leave-n-out cross validation for final GLMM model on limited test sets

1, 5, 10, 20, 50, (100)

plot the values, and once it stabilizes, no need to go higher. Saves number of models to make.

Modify linters capabilities

The linters can be specified by creating the .lintr file at the project or home directory. Details can be found at lintr documentation.

Reduce function

Reduce(
    function(x, y) ifelse(x ==1, 1, y),
    row,
    accumulate = T
)
apply(data, 1, function(row){
    ...
})
data_accu <- do.call(rbind, ...)

Code sectioning

Use commented lines of - and = to break up your file into easily readable chunks.

#--------------------------------------------

Add 3d plot

Use 10x10 area for each tree
Use geom polygon, rect or ribbon

Implement CDI

Cumulative disease Index

Temp:
< 20 : 0
20-25: 1
25-32: 2
32-34: 1
34+: 0

Rain:
0: 0
0.0.1 - 0.1: 1
1+ : 2

Humidity:
0-60: 0
610-70: 0.5
70-80: 1
80:90: 1.5
90-100: 2

Wind:
0.5: 0
5-7: 1
7+: 0

Massively parallel scripting

For cross validation phase:

  • Transfer dataset to remote location (Hipergator)
  • install packages parallel, foreach and rslurm
  • in a script
    • make functions to execute
    • make parameter list (one per slurm submission)
    • set slurm options
    • execute
  • copy rda back

Filter function

filter <- function(.data, ...) {
cond <- deparse_dots(...)
paste(, collapse = " & ")
.data[with(
.data, eval(
parse(
text = conditions
)
)
), ]
}

Calculate lag from residuals

  1. Fit presence ~ week + dis + gene + gene:dis + gene:week + dir for field data.
  2. Get residuals.
  3. Merge residuals to each env dataframe and calculate fit.
  4. Determine best lag period.

Check if ligatures work

"editor.fontFamily": "'Cascadia Code', 'Courier New', monospace",
"editor.fontLigatures": true

Basic functional chain/pipe

`%.%` <- function (lhs, rhs) {
    rhs_call <- substitute(rhs)
    eval(
        rhs_call,
        envir = list(. = lhs),
        enclos = parent.frame()
    )
}

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.