Gavin Blog

安于现状,悬于未来

PyTorch

Tensors and Dynamic neural networks in Python

Get Started Tensor Pytorch is similar with Numpy, but tensor can be accelerated on GPU. import torch import numpy as np numpy_tensor = np.random.randn(2,3) # Numpy ndarry -> PyTorch Te...

ShuffleNet

An Extremely Efficient Convolutional Neural Network for Mobile Devices

Author of paper: Xiangyu Zhang, Xinyu Zhou, Mentxiao Lin, Jian Sun Abstract ShuffleNet: designed for mobile devices with very limited computing power. The new architecture utilizes two new o...

python虚拟环境搭建

Anaconda, Pycharm

记录一下anaconda/pycharm配置过程 Why Anaconda? Anaconda是专注于数据分析的Python发行版本,包含了conda、Python等190多个科学包及其依赖项。 conda 是开源包(packages)和虚拟环境(environment)的管理系统。 Package Management: 可以使用 conda 来安装、更新 、卸载工具包 ,...

KNN

Deep learning

K-nearest-neighbor KNN description KNN是一种用于分类和回归的非参数统计(nonparametric)方法,非参数统计即不对样本分布做假设,直接分析样本的一类统计方法。 简单来说, KNN指训练完train set后,当给出test时,根据离test距离最近的k个train的值,确定test的值。 这里距离test的距离分为两种:L1 dis...

Leetcode刷题笔记

记录一些题目/持续更新

使用Python3实现,以下题目均已AC 442. Find All Duplicats in an Array Description Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find al...

单向链表

使用python3实现单向链表

整理一下使用python3实现的部分单向链表的基本操作 链表的概念 链表(linked list)是由一组被称为结点(Node)的数据元素组成的数据结构。每个结点分为两部分:数据域和指针域,其中数据域存储结点的信息,指针域指向链表的下一个结点。在一个链表中,头结点(head)永远指向该链表的第一个结点,尾结点(tail)永远指向该链表的最后一个结点,该链表最后一个结点的指针域指向...

Git指令整理

不适合阅读的整理的一些个人常用的 Git 指令

随便整理的一些自用的Git指令 GitHub创建仓库提示代码 echo "# 项目名" >> README.md git init git add README.md git commit -m "first commit" git remote add origin git@github.com:qiubaiying/项目名.git git push -u orig...