Git Product home page Git Product logo

helda's Introduction

R package helda (HELpful functions for Data Analysis in R)

CRAN status R build status Build Status Codecov test coverage Documentation License: GPL v3 Downloads

Overview

This package provides functionalities that aim at facilitating and saving time when analysing data.

Installation

You can install helda from CRAN by simply running:

install.packages("helda")

Development version

To get a bug fix, or use a feature from the development version, you can install helda from this GitHub repository.

# install.packages("devtools")
devtools::install_github("Redcart/helda")

Usage

This is a quick introduction to the lift curve function of the package:

library(helda)

data_training <- titanic_training
data_validation <- titanic_validation

model_glm <- glm(formula = "Survived ~ Pclass + Sex + Age + 
                 SibSp + Fare + Embarked",
                 data = data_training,
                 family = binomial(link = "logit"))

predictions <- predict(object = model_glm, 
                       newdata = data_validation, 
                       type = "response")

plot <- lift_curve(predictions = predictions, 
                   true_labels = data_validation$Survived, 
                   positive_label = 1)

plot

Getting help

If you encounter a clear bug, please file a minimal reproducible example on the issues section of the repository.

Author

Simon Corde

helda's People

Contributors

hadley avatar redcart avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hadley

helda's Issues

Issues with next ggplot2 release

We have detected issues with helda when checking the next release of ggplot2, due in two weeks

helda

Run cloud_details(, "helda") for more info

Newly broken

  • checking tests ... ERROR
      Running ‘testthat.R’
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
      Component "layers": Component 3: Component 3: Component 2: target, current do not match when deparsed
      Component "plot_env": Component "plot_2": Component "layers": Component 3: Component 3: Component 2: target, current do not match when deparsed
      
      ── 2. Failure: lift effect for titanic data set (@test-lift_effect.R#18)  ──────
      `result` not equivalent to `lift_effect_test`.
      Component "layers": Component 2: Component 3: Component 2: target, current do not match when deparsed
      Component "plot_env": Component "plot_1": Component "layers": Component 2: Component 3: Component 2: target, current do not match when deparsed
      
      ══ testthat results  ═══════════════════════════════════════════════════════════
      [ OK: 5 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
      1. Failure: lift curve for titanic data set (@test-lift_curve.R#18) 
      2. Failure: lift effect for titanic data set (@test-lift_effect.R#18) 
      
      Error: testthat unit tests failed
      Execution halted
    

I've looked into your unit test, but since you simply compare two very complex plot objects and see if they are the same it is hard to figure out where the issue lies. Note that we may from time to time change some internals of ggplot2 which will be reflected in the resulting plot object, so comparing the plot object wholesale to a cached one will always be very fragile and hard to maintain. I'd suggest you instead compare specific values you know are important and related to your package code.

We will submit ggplot2 in two weeks so I hope you'll have time to fix the unit test by then. Please reach out if you have any further questions

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.