This file contains hidden or 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
| """Fairly basic set of tools for real-time data augmentation on image data. | |
| Can easily be extended to include new transformations, | |
| new preprocessing methods, etc... | |
| """ | |
| from __future__ import absolute_import | |
| from __future__ import print_function | |
| import numpy as np | |
| import re | |
| from scipy import linalg |
This file contains hidden or 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
| """Fairly basic set of tools for real-time data augmentation on image data. | |
| Can easily be extended to include new transformations, | |
| new preprocessing methods, etc... | |
| """ | |
| from __future__ import absolute_import | |
| from __future__ import print_function | |
| import numpy as np | |
| import re | |
| from scipy import linalg |
This file contains hidden or 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
| # load necessary libraries | |
| library(gym) | |
| library(tidyverse) | |
| # adjust env_reset and env_step functions for custom output | |
| my_env_reset <- function(x, instance_id) { | |
| route <- paste0("/v1/envs/", instance_id, "/reset/", sep = "") | |
| response <- post_request(x, route) | |
| observation <- response[["observation"]] | |
| names(observation) <- paste0("obs", 1:length(observation)) |