Articles by R on notast

Hierarchical forecasting of hospital admissions- ML approach (ensemble)

June 19, 2021 | R on notast

1. Recap 2 Tune again Modelling Retuning 2.1 Retune Random Forest 2.2 Retune Prophet boost 2.3 Performance (after retuning) 3 Ensemble 3.1 Peformance (ensemble) 4 Performance (individual levels) Hospital Cluster level National level 5 The future Hospital Cluster National 6 KIV Plans Errors 1. Recap The aim of this series of blog is to predict monthly admissions to Singapore public acute ...
[Read more...]

Hierarchical forecasting of hospital admissions

June 2, 2021 | R on notast

Introduction Visualization 1. Trend 2. Seasonality Trend and seasonality 3. Anomaly Conclusion Introduction The aim of this series of blogs is to do time series forecasting with libraries that conform to tidyverse principles and there are two of these time series meta-packages modeltime which is created to be the time series equivalent of ...
[Read more...]

Predicting pneumonia outcomes: Modelling via DataRobot API

September 11, 2020 | R on notast

This post is a supplementary material for an assignment. The assignment is part of the Augmented Machine Learning unit for a Specialised Diploma in Data Science for Business. The aim of this project is to classify if patients with Community Acquired Pneumonia (CAP) became better after seeing a doctor or ...
[Read more...]

Predicting pneumonia outcomes: Feature Engineering

August 17, 2020 | R on notast

Intro This post is a supplementary material for an assignment. The assignment is part of the Augmented Machine Learning unit for a Specialised Diploma in Data Science for Business. The aim of the assignment is to use DataRobot for predictive modelling. Exploratory data analysis and feature engineering will be done ...
[Read more...]

Predicting pneumonia outcomes: EDA part 2

August 10, 2020 | R on notast

Intro 9 Lab_ related category Missing Lab values Outlier Lab values High Lab_Hb levels Low Lab_Neu High Lab_Sugar 10 CS_ cultures related category 11 Abx_ antibiotics related category 11i Class of empirical antibiotics given 11ii Antibiotics given Number of antibiotics given 11iii Duration of antibiotics 12 Care_ continuum of care status ...
[Read more...]

Predicting pneumonia outcomes: EDA part 1

August 4, 2020 | R on notast

Intro Data dictionary EDA blueprint Outcome Discard the noise 1 Other_ related category 2 Pt_ Patient related category Appropriate patients Case_number Age 3 R_ Radiology related category Effusion and effusion site On chest x-ray ( R_CXR_effusion, R_CXR_effusionSite) On CT chest (R_CT_effusion, R_CT_effusionSite) 4 SS_ Category related ...
[Read more...]

What `R` you? (R dataframe vs python dataframe)

February 16, 2020 | R on notast

Recap Previously in this series, we discovered the equivalent python data structures for the following R data structures: vectors lists arrays/matrixes In this post, we will look at translating R data frames into python. We will also compare and contrast data frames in R and python. R data frame ... [Read more...]

What `R` you? (R matrixes and R arrays in python)

February 11, 2020 | R on notast

Recap Previously in this series, we discovered the equivalent python data structures of the following R data structures: vectors lists In this post, we will look at translating R arrays (and matrixes) into python. 1D R array A 1D R array prints like a vector.
library(tidyverse)
library(reticulate)
py_run_string("import numpy as np")
py_run_string("import pandas as pd")
(OneD<-array(1:6))
## [1] 1 2 3 4 5 6
But it is ... [Read more...]

What `R` you? (R list in python)

January 25, 2020 | R on notast

Previously, we uncovered what are R vectors in python. In this post, we will convert R lists in python. A R list is a python … Like R vectors, it depends. A R list will behave differently in python depending if it is named or not. Unnamed R list An unnamed ... [Read more...]

What R you in python? (`R` vectors)

January 18, 2020 | R on notast

reticulate allows us to toggle between R and python in the same session, callling R objects when running python scripts and vice versa. When calling R data structures in python, the R structures are converted to the equivalent python structures where applicable. However, like translating English to Mandarin, translating R ... [Read more...]

Adding Syntax Highlight

July 19, 2019 | R on notast

Syntax highlighting Previously, I posted entries without any syntax highlighting as I was satisfied using basic blogdown and Hugo functions until a Disqus member commented in the previous post to use syntax highlighting. Thus, I tasked myself to learn more about syntax highlighting and to implement them in future posts. ... [Read more...]
1 2

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)