sk_ds_to_tibble | R Documentation |
Convert sci-kit learn dataset into a tibble
sk_ds_to_tibble(data, include_group = T, feature_names = NULL)
data |
sci-kit learn data set |
include_group |
if |
feature_names |
if not |
tibble()
library(tidyverse)
library(sklearn)
ds <- sk_datasets()
n_samples <- 1500L
moons <- ds$make_moons(n_samples = n_samples, noise = .05)
df_moon <-
moons %>%
sk_ds_to_tibble(include_group = T, feature_names = c("x", "y", "group"))
df_moon %>% glimpse()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.