Comments (3)
Assuming your tmle3 fit object is named tmle3_fit
, this is one way to extract the estimated propensity score from that object:
propensity_score <- tmle3_fit$likelihood$initial_likelihood$factor_list$A$learner$predict()
from sl3.
Hi @emmavestesson, thanks for bringing this up. The argument type
is not an accepted argument for predict
in sl3. This is why your call, sl_fit$predict(task=task, type=“response”)
, is producing an error. The handbook example uses sl_fit$predict(task=task)
. This is the correct formatting. What do the predictions look like when you run sl_fit$predict(task=task)
(i.e., when you do not run the code that errors)? Could you please include, say, the first 10 predictions that are output by that call?
You can also obtain the estimated propensity scores from the tmle3 fit object. I will show you how to do that too when I to my laptop. It would be helpful in the meantime if you could please share those first few predictions so I can make sure the format of the binary outcome predictions is a predicted probability.
from sl3.
Hi @rachaelvp,
Thanks for replying so quickly, I really appreciate it. I can't share the actual values but they are all between 0-1 (not including 0 and 1). It would be great if you could share how to get the estimated propensity score from the tmle3 fit object when you have the opportunity. Thanks again for your help!
from sl3.
Related Issues (20)
- Add MAE loss function HOT 2
- Add count/nonnegative outcome variable type to sl3 and poisson family supporting learner properties HOT 2
- formula argument for learner clashes with formula argument of the internal learning routine (e.g. GAM) HOT 2
- documentation improvements
- Allowed argument for earth not being passed appropriately HOT 1
- Error : No newoffset provided for prediction, yet offset used in fit of glmnet HOT 1
- R 4.0 dependency (stringsAsFactors) HOT 3
- Devel install error HOT 4
- When loading the sl3 package, this error gets reported... HOT 7
- Example for `Lrnr_cv_selector` is not working HOT 3
- Delayed learner fit does not yield same result as regular fit when `Lrnr_randomForest` is used HOT 1
- `Lrnr_cv` predictions broken HOT 2
- Stratify folds by sparse outcome - question HOT 3
- Using sl3 fits in tmle3 HOT 2
- Lrnr_glmnet bug HOT 1
- sl3 CV split with rare events HOT 1
- sl3 presentation on website currently returns 404 error HOT 1
- chain_fold not defined for Lrnr_base
- installation problem HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sl3.