This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Wavelength to RGB | |
#' | |
#' This function converts a given wavelength of light to an | |
#' approximate RGB color value. | |
#' | |
#' @param wavelength A wavelength value, in nanometers, in the human visual range from 380 nm through 750 nm. | |
#' These correspond to frequencies in the range from 789 THz through 400 THz. | |
#' @param gamma The \eqn{\gamma} correction for a given display device. The linear RGB values will require | |
#' gamma correction if the display device has nonlinear response. | |
#' @return a color string, corresponding to the result of \code{\link[grDevices]{rgb}} on the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''This script goes along the blog post | |
"Building powerful image classification models using very little data" | |
from blog.keras.io. | |
It uses data that can be downloaded at: | |
https://www.kaggle.com/c/dogs-vs-cats/data | |
In our setup, we: | |
- created a data/ folder | |
- created train/ and validation/ subfolders inside data/ | |
- created cats/ and dogs/ subfolders inside train/ and validation/ | |
- put the cat pictures index 0-999 in data/train/cats |