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
from plotnine import ggplot, annotate, aes, geom_text, geom_point, scale_size_manual, scale_shape_manual | |
from plotnine import scale_colour_manual, ylim, xlim, coord_fixed, theme_void | |
from plotnine.animation import PlotnineAnimation | |
import pandas as pd | |
import numpy as np | |
import warnings | |
from tqdm import tqdm | |
def visualize_play(play_data, path=None): |
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
import argparse | |
from collections import Counter | |
import csv | |
import os | |
import torch | |
from torch.autograd import Variable | |
import torch.nn as nn | |
import torch.optim as optim | |
import torch.utils.data as data | |
import tarfile |
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
# Load the required libraries | |
library(datasets) | |
library(dplyr) | |
library(ggplot2) | |
# Load the two datasets to be consumed in this example | |
CO2 <- CO2 | |
PlantGrowth <- PlantGrowth | |
# Look at the column names and the first few values for CO2 |