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 os | |
import subprocess | |
import json | |
# %% | |
subprocess.run( | |
[ | |
"wget", |
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 os | |
import openai | |
import numpy as np | |
from tqdm import trange | |
# %% |
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
let g:window_key_prefix = "<space>" | |
" the first value is the key and the second is the new window command | |
let g:window_key_mappings = [ | |
\ ["h", "aboveleft vsplit"], | |
\ ["j", "belowright split"], | |
\ ["k", "aboveleft split"], | |
\ ["l", "belowright vsplit"], | |
\ [",", | |
\ "let buf = bufnr('%') <bar> tabnew <bar> execute 'buffer' buf"], | |
\ [".", ""], |
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
const builtin = @import("builtin"); | |
const std = @import("std"); | |
const assert = std.debug.assert; | |
const log = std.log.scoped(.debug); | |
const build_options = @import("build_options"); | |
const log_writer = @import("log.zig").Writer{.context = {}}; | |
const c = @import("c.zig"); | |
extern var __debug_info_start: u8; | |
extern var __debug_info_end: u8; |
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 keras import backend as K | |
from keras.optimizers import Optimizer | |
from keras.utils import get_custom_objects | |
class Padam(Optimizer): | |
"""Partially adaptive momentum estimation optimizer. | |
# Arguments | |
lr: float >= 0. Learning rate. | |
beta_1: float, 0 < beta < 1. Generally close to 1. |