-
Notifications
You must be signed in to change notification settings - Fork 0
/
Analazye_tf_runs.Rmd
63 lines (51 loc) · 1.17 KB
/
Analazye_tf_runs.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
title: "Analyze_tfruns"
author: "Julin Maloof"
date: "12/7/2021"
output: html_notebook
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r}
library(keras)
library(tfruns)
library(tidyverse)
```
```{r}
options(tfruns.runs_dir = "cats_dogs_tfruns_results/runs")
```
```{r}
View(ls_runs())
```
```{r}
view_run()
```
```{r}
compare_runs()
```
```{r}
runsdata <- ls_runs()
head(runsdata)
```
```{r}
runsdata %>% arrange(desc(metric_val_acc)) %>%
select(metric_val_acc, starts_with("flag"))
```
```{r}
runsdata %>%
select(metric_val_acc, starts_with("flag")) %>%
mutate(flag_four_layer = factor(
ifelse(flag_four_layer, "four conv layers", "three conv layers"),
levels=c("three conv layers", "four conv layers"))) %>%
ggplot(aes(y=metric_val_acc, x=as.factor(flag_filters), fill=as.factor(flag_kernel))) +
geom_col(position="dodge") +
facet_grid(flag_four_layer ~ flag_dropout)
```
Let's compare best run to original
```{r}
runsdata %>% filter(metric_val_acc == max(metric_val_acc) |
(flag_four_layer==TRUE & flag_dropout==0.5 & flag_filters==32 & flag_kernel==3)) %>%
magrittr::extract(1:2,) %>%
compare_runs()
```