SYMBOL INDEX (169 symbols across 2 files) FILE: code/d2lzh_pytorch/utils.py function set_figsize (line 42) | def set_figsize(figsize=(3.5, 2.5)): function use_svg_display (line 47) | def use_svg_display(): function data_iter (line 51) | def data_iter(batch_size, features, labels): function linreg (line 59) | def linreg(X, w, b): function squared_loss (line 62) | def squared_loss(y_hat, y): function sgd (line 66) | def sgd(params, lr, batch_size): function get_fashion_mnist_labels (line 75) | def get_fashion_mnist_labels(labels): function show_fashion_mnist (line 80) | def show_fashion_mnist(images, labels): function train_ch3 (line 119) | def train_ch3(net, train_iter, test_iter, loss, num_epochs, batch_size, class FlattenLayer (line 152) | class FlattenLayer(torch.nn.Module): method __init__ (line 153) | def __init__(self): method forward (line 155) | def forward(self, x): # x shape: (batch, *, *, ...) function semilogy (line 160) | def semilogy(x_vals, y_vals, x_label, y_label, x2_vals=None, y2_vals=None, function corr2d (line 198) | def corr2d(X, K): function evaluate_accuracy (line 209) | def evaluate_accuracy(data_iter, net, device=None): function train_ch5 (line 229) | def train_ch5(net, train_iter, test_iter, batch_size, optimizer, device,... function load_data_fashion_mnist (line 254) | def load_data_fashion_mnist(batch_size, resize=None, root='~/Datasets/Fa... class GlobalAvgPool2d (line 276) | class GlobalAvgPool2d(nn.Module): method __init__ (line 278) | def __init__(self): method forward (line 280) | def forward(self, x): class Residual (line 286) | class Residual(nn.Module): method __init__ (line 287) | def __init__(self, in_channels, out_channels, use_1x1conv=False, strid... method forward (line 298) | def forward(self, X): function resnet_block (line 305) | def resnet_block(in_channels, out_channels, num_residuals, first_block=F... function resnet18 (line 316) | def resnet18(output=10, in_channels=3): function load_data_jay_lyrics (line 333) | def load_data_jay_lyrics(): function data_iter_random (line 346) | def data_iter_random(corpus_indices, batch_size, num_steps, device=None): function data_iter_consecutive (line 367) | def data_iter_consecutive(corpus_indices, batch_size, num_steps, device=... function one_hot (line 386) | def one_hot(x, n_class, dtype=torch.float32): function to_onehot (line 393) | def to_onehot(X, n_class): function predict_rnn (line 397) | def predict_rnn(prefix, num_chars, rnn, params, init_rnn_state, function grad_clipping (line 413) | def grad_clipping(params, theta, device): function train_and_predict_rnn (line 422) | def train_and_predict_rnn(rnn, get_params, init_rnn_state, num_hiddens, class RNNModel (line 480) | class RNNModel(nn.Module): method __init__ (line 481) | def __init__(self, rnn_layer, vocab_size): method forward (line 489) | def forward(self, inputs, state): # inputs: (batch, seq_len) function predict_rnn_pytorch (line 498) | def predict_rnn_pytorch(prefix, num_chars, model, vocab_size, device, id... function train_and_predict_rnn_pytorch (line 517) | def train_and_predict_rnn_pytorch(model, num_hiddens, vocab_size, device, function train_2d (line 568) | def train_2d(trainer): function show_trace_2d (line 577) | def show_trace_2d(f, results): function get_data_ch7 (line 588) | def get_data_ch7(): function train_ch7 (line 594) | def train_ch7(optimizer_fn, states, hyperparams, features, labels, function train_pytorch_ch7 (line 633) | def train_pytorch_ch7(optimizer_fn, optimizer_hyperparams, features, lab... class Benchmark (line 671) | class Benchmark(): method __init__ (line 672) | def __init__(self, prefix=None): method __enter__ (line 675) | def __enter__(self): method __exit__ (line 678) | def __exit__(self, *args): function show_images (line 686) | def show_images(imgs, num_rows, num_cols, scale=2): function train (line 696) | def train(train_iter, test_iter, net, loss, optimizer, device, num_epochs): function bbox_to_rect (line 722) | def bbox_to_rect(bbox, color): function MultiBoxPrior (line 733) | def MultiBoxPrior(feature_map, sizes=[0.75, 0.5, 0.25], ratios=[1, 2, 0.... function show_bboxes (line 769) | def show_bboxes(axes, bboxes, labels=None, colors=None): function compute_intersection (line 789) | def compute_intersection(set_1, set_2): function compute_jaccard (line 804) | def compute_jaccard(set_1, set_2): function assign_anchor (line 826) | def assign_anchor(bb, anchor, jaccard_threshold=0.5): function xy_to_cxcy (line 858) | def xy_to_cxcy(xy): function MultiBoxTarget (line 870) | def MultiBoxTarget(anchor, label): function non_max_suppression (line 938) | def non_max_suppression(bb_info_list, nms_threshold = 0.5): function MultiBoxDetection (line 969) | def MultiBoxDetection(cls_prob, loc_pred, anchor, nms_threshold = 0.5): class PikachuDetDataset (line 1033) | class PikachuDetDataset(torch.utils.data.Dataset): method __init__ (line 1035) | def __init__(self, data_dir, part, image_size=(256, 256)): method __len__ (line 1047) | def __len__(self): method __getitem__ (line 1050) | def __getitem__(self, index): function load_data_pikachu (line 1068) | def load_data_pikachu(batch_size, edge_size=256, data_dir = '../../data/... function read_voc_images (line 1084) | def read_voc_images(root="../../data/VOCdevkit/VOC2012", function voc_label_indices (line 1101) | def voc_label_indices(colormap, colormap2label): function voc_rand_crop (line 1110) | def voc_rand_crop(feature, label, height, width): class VOCSegDataset (line 1122) | class VOCSegDataset(torch.utils.data.Dataset): method __init__ (line 1123) | def __init__(self, is_train, crop_size, voc_dir, colormap2label, max_n... method filter (line 1144) | def filter(self, imgs): method __getitem__ (line 1149) | def __getitem__(self, idx): method __len__ (line 1156) | def __len__(self): function read_imdb (line 1162) | def read_imdb(folder='train', data_root="/S1/CSCL/tangss/Datasets/aclImd... function get_tokenized_imdb (line 1173) | def get_tokenized_imdb(data): function get_vocab_imdb (line 1181) | def get_vocab_imdb(data): function preprocess_imdb (line 1186) | def preprocess_imdb(data, vocab): function load_pretrained_embedding (line 1197) | def load_pretrained_embedding(words, pretrained_vocab): function predict_sentiment (line 1211) | def predict_sentiment(net, vocab, sentence): FILE: docs/docsify.js function cached (line 5) | function cached(fn) { function isPrimitive (line 47) | function isPrimitive(value) { function noop (line 54) | function noop() {} function isFn (line 59) | function isFn(obj) { function config (line 63) | function config () { function initLifecycle (line 133) | function initLifecycle(vm) { function callHook (line 151) | function callHook(vm, hook, data, next) { function getNode (line 209) | function getNode(el, noCache) { function find (line 234) | function find(el, node) { function findAll (line 244) | function findAll(el, node) { function create (line 250) | function create(node, tpl) { function appendTo (line 258) | function appendTo(target, el) { function before (line 262) | function before(target, el) { function on (line 266) | function on(el, type, handler) { function off (line 272) | function off(el, type, handler) { function toggleClass (line 285) | function toggleClass(el, type, val) { function style (line 289) | function style(content) { function corner (line 315) | function corner(data) { function main (line 338) | function main(config) { function cover (line 366) | function cover() { function tree (line 387) | function tree(toc, tpl) { function helper (line 403) | function helper(className, content) { function theme (line 407) | function theme(color) { function init (line 417) | function init() { function progressbar (line 427) | function progressbar (ref) { function get (line 463) | function get(url, hasBar, headers) { function replaceVar (line 526) | function replaceVar(block, color) { function cssVars (line 533) | function cssVars (color) { function tinydate (line 574) | function tinydate (str) { function createCommonjsModule (line 605) | function createCommonjsModule(fn, module) { function Lexer (line 740) | function Lexer(options) { function InlineLexer (line 1226) | function InlineLexer(links, options) { function Renderer (line 1499) | function Renderer(options) { function TextRenderer (line 1691) | function TextRenderer() {} function Parser (line 1716) | function Parser(options) { function escape (line 1905) | function escape(html, encode) { function unescape (line 1914) | function unescape(html) { function edit (line 1928) | function edit(regex, opt) { function resolveUrl (line 1944) | function resolveUrl(base, href) { function noop (line 1968) | function noop() {} function merge (line 1971) | function merge(obj) { function splitCells (line 1988) | function splitCells(tableRow, count) { function marked (line 2008) | function marked(src, opt, callback) { function genTree (line 3043) | function genTree(toc, maxLevel) { function lower (line 3068) | function lower(string) { function slugify (line 3072) | function slugify(str) { function replace (line 3101) | function replace(m, $1) { function emojify (line 3105) | function emojify(text) { function parseQuery (line 3115) | function parseQuery(query) { function stringifyQuery (line 3134) | function stringifyQuery(obj, ignores) { function getPath (line 3181) | function getPath() { function getAndRemoveConfig (line 3285) | function getAndRemoveConfig(str) { function btn (line 3693) | function btn(el) { function collapse (line 3713) | function collapse(el) { function sticky (line 3731) | function sticky() { function getAndActive (line 3753) | function getAndActive(router, el, isParent, autoTitle) { function defineProperties (line 3781) | function defineProperties(target, props) { for (var i = 0; i < props.len... function _classCallCheck (line 3783) | function _classCallCheck(instance, Constructor) { if (!(instance instanc... function Tweezer (line 3786) | function Tweezer() { function scrollTo (line 3882) | function scrollTo(el) { function highlight (line 3900) | function highlight(path) { function getNavKey (line 3952) | function getNavKey(path, id) { function scrollActiveSidebar (line 3956) | function scrollActiveSidebar(router) { function scrollIntoView (line 4002) | function scrollIntoView(path, id) { function scroll2Top (line 4019) | function scroll2Top(offset) { function walkFetchEmbed (line 4027) | function walkFetchEmbed(ref, cb) { function prerenderEmbed (line 4087) | function prerenderEmbed(ref, done) { function executeScript (line 4147) | function executeScript() { function formatUpdated (line 4163) | function formatUpdated(html, updated, fn) { function renderMain (line 4174) | function renderMain(html) { function renderNameLink (line 4199) | function renderNameLink(vm) { function renderMixin (line 4217) | function renderMixin(proto) { function initRender (line 4351) | function initRender(vm) { function getAlias (line 4420) | function getAlias(path, alias, last) { function getFileName (line 4431) | function getFileName(path, ext) { function replaceHash (line 4498) | function replaceHash(path) { function HashHistory (line 4504) | function HashHistory(config) { function HTML5History (line 4581) | function HTML5History(config) { function routerMixin (line 4651) | function routerMixin(proto) { function updateRender (line 4657) | function updateRender(vm) { function initRouter (line 4663) | function initRouter(vm) { function eventMixin (line 4692) | function eventMixin(proto) { function initEvent (line 4702) | function initEvent(vm) { function loadNested (line 4714) | function loadNested(path, qs, file, next, vm, first) { function fetchMixin (line 4729) | function fetchMixin(proto) { function initFetch (line 4954) | function initFetch(vm) { function initMixin (line 4973) | function initMixin(proto) { function initPlugin (line 4989) | function initPlugin(vm) { function initGlobalAPI (line 5016) | function initGlobalAPI () { function ready (line 5032) | function ready(callback) { function Docsify (line 5042) | function Docsify() {