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
theme_Nice <- | |
function(base_size = 14, | |
base_family = "Helvetica", | |
angled = TRUE, | |
show_legend = TRUE, | |
axis_text_size = 14) { | |
return( | |
theme_bw(base_size = base_size, base_family = base_family) | |
+ theme( | |
axis.text.x = element_text( |
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 math | |
def conv_size(in_size, kernel_size, stride, padding): | |
out_size = in_size - kernel_size + (padding * 2) | |
if out_size % stride != 0: | |
print(f'Floor used for {out_size=}, {stride=}') | |
out_size = math.floor(out_size / stride) | |
out_size = out_size + 1 | |
return out_size |
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
// Outputs pictures in source folder extra map "out". | |
// Make sure this folder is not yet there before running this script; otherwise errors | |
// at 'newArray' below, specify your | |
// "/main/directory/" | |
// which should contain subdirectories. | |
// The subdirectories contain your pictures, | |
// which are files containing three channels | |
// (red, green, blue) |