inst/doc/migrating_ignite.R

## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(echo = TRUE,eval = FALSE,echo = T)

## -----------------------------------------------------------------------------
#  library(fastai)
#  library(magrittr)
#  
#  data = Data_Loaders(get_data_loaders(64, 128))$cuda()
#  
#  nn = nn()
#  opt_func = partial(SGD, momentum=0.5)
#  learn = Learner(data, Net(), loss_func = nn$NLLLoss(), opt_func = opt_func, metrics = accuracy)
#  learn %>% fit_one_cycle(1, 0.01)

Try the fastai package in your browser

Any scripts or data that you put into this service are public.

fastai documentation built on March 31, 2023, 11:41 p.m.