Skip to content

Commit a0f857e

Browse files
committed
Merge pull request sux13#7 from elmerehbi/master
Corrected and added some stuff
2 parents ffbd4eb + 41691f1 commit a0f857e

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

8_PREDMACHLEARN/Practical Machine Learning Course Notes HTML.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ grid.raster(readPNG("figures/6.png"))
213213

214214

215215
## Receiver Operating Characteristic Curves
216+
* are commonly used techniques to measure the quality of a prediction algorithm.
216217
* predictions for binary classification often are quantitative (i.e. probability, scale of 1 to 10)
217218
- different cutoffs/threshold of classification (> 0.8 --> one outcome) yield different results/predictions
218219
- **Receiver Operating Characteristic** curves are generated to compare the different outcomes

8_PREDMACHLEARN/Practical Machine Learning Course Notes.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ grid.raster(readPNG("figures/6.png"))
214214
$\pagebreak$
215215

216216
## Receiver Operating Characteristic Curves
217+
* are commonly used techniques to measure the quality of a prediction algorithm.
217218
* predictions for binary classification often are quantitative (i.e. probability, scale of 1 to 10)
218219
- different cutoffs/threshold of classification (> 0.8 --> one outcome) yield different results/predictions
219220
- **Receiver Operating Characteristic** curves are generated to compare the different outcomes

9_DEVDATAPROD/Developing Data Products Course Notes HTML.Rmd

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,15 @@ grid.raster(readPNG("figures/5.png"))
335335
* rChart objects have various attributes/functions that you can use when saved `n1 <- nplot(...)`
336336
- `n1$` + TAB in R Console brings up list of all functions contained in the object
337337
- `n1$html()` = prints out the HTML for the plot
338-
- `n1$save(filename)` = embeds code into slidify document
338+
- `n1$save("filename.html")` = saves result to a file named "filename.html"
339339
- `n1$print()` = print out the JavaScript
340340
- `n1$show("inline", include_assets = TRUE, cdn = F)` = embed HTML/JS code directly with in Rmd file (for HTML output)
341341
- `n1$publish('plotname', host = 'gist'/'rpubs')` = publishes the plot under the specified `plotname` as a `gist` or to `rpubs`
342-
* to use with ***slidify***, the following YAML (Yet Another Markup Language/YAML Ain't Markup Language) must be added
343-
- `yaml ext_widgets : {rCharts: ["libraries/nvd3"]}`
342+
* to use with ***slidify***,
343+
- the following YAML (Yet Another Markup Language/YAML Ain't Markup Language) must be added
344+
- `yaml ext_widgets : {rCharts: ["libraries/nvd3"]}`
345+
- `cat('<iframe src="map3.html" width=100%, height=600></iframe>')` to embed a map or chart form a saved file (saved with: `map3$save('map3.html', cdn = TRUE)`)
346+
344347

345348
### Example
346349

9_DEVDATAPROD/Developing Data Products Course Notes.Rmd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,14 @@ $\pagebreak$
334334
* rChart objects have various attributes/functions that you can use when saved `n1 <- nplot(...)`
335335
- `n1$` + TAB in R Console brings up list of all functions contained in the object
336336
- `n1$html()` = prints out the HTML for the plot
337-
- `n1$save(filename)` = embeds code into slidify document
337+
- `n1$save("filename.html")` = saves result to a file named "filename.html"
338338
- `n1$print()` = print out the JavaScript
339339
- `n1$show("inline", include_assets = TRUE, cdn = F)` = embed HTML/JS code directly with in Rmd file (for HTML output)
340340
- `n1$publish('plotname', host = 'gist'/'rpubs')` = publishes the plot under the specified `plotname` as a `gist` or to `rpubs`
341-
* to use with ***slidify***, the following YAML (Yet Another Markup Language/YAML Ain't Markup Language) must be added
342-
- `yaml ext_widgets : {rCharts: ["libraries/nvd3"]}`
341+
* to use with ***slidify***,
342+
- the following YAML (Yet Another Markup Language/YAML Ain't Markup Language) must be added
343+
- `yaml ext_widgets : {rCharts: ["libraries/nvd3"]}`
344+
- `cat('<iframe src="map3.html" width=100%, height=600></iframe>')` to embed a map or chart form a saved file (saved with: `map3$save('map3.html', cdn = TRUE)`)
343345

344346
### Example
345347

0 commit comments

Comments
 (0)