自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

专注机器学习之路

机器学习的理论与Python实践笔记

  • 博客(319)
  • 资源 (22)
  • 论坛 (1)
  • 收藏
  • 关注

原创 211014-Python短时傅里叶变换

from scipy import signalimport matplotlib.pyplot as pltrng = np.random.default_rng()fs = 10e3N = 1e5amp = 2 * np.sqrt(2)noise_power = 0.01 * fs / 2time = np.arange(N) / float(fs)mod = 500*np.cos(2*np.pi*0.25*time)carrier = amp * np.sin(2*np.pi*3e

2021-10-14 18:59:34 11

原创 211014-VsCode Interpreter两种指定与冲突解决

VsCode选择解释的方法有两种可在环境设置中配置Python解释器也可以通过代码脚本的的形式指定Python解释器二者灵活使用可提高不同解释器切换的效率,但是也存在冲突的情况,例如No module...., 可通过删除脚本#!/usr/bin/python的方式解决。...

2021-10-14 09:02:27 15

原创 210817-IRLS迭代最小二乘法

Code 1:from numpy import array, diag, dot, maximum, empty, repeat, ones, sumfrom numpy.linalg import invdef IRLS(y, X, maxiter, w_init = 1, d = 0.0001, tolerance = 0.001): n,p = X.shape delta = array( repeat(d, n) ).reshape(1,n) w = repeat(1, n)..

2021-08-17 17:35:26 295

原创 210806-IEEE TII 投稿要求

TII checklist for manuscript submissionsAuthors should consider the following points before submitting a new paper. Otherwise the submission would be automatically rejected.New manuscripts cannot exceed 8 pages. Note that usually in the review process

2021-08-06 10:14:50 212

原创 210723-如何将Logo放到Beamer的title中

参考以下代码更换即可:\begin{frame}\frametitle{\makebox[\framewidth]{Table of Contents\hfill\raisebox{-0.65ex}{\includegraphics[height=1cm]{Figures/hust_logo.pdf}}}}\tableofcontents\end{frame}

2021-07-23 14:28:58 74

原创 210719-学术写作:“Dataset”还是“Data set”?

Ref: https://www.zumolabs.ai/post/2020/11/09/is-it-data-set-or-dataset

2021-07-19 14:42:25 56

原创 210617-LaTex矩阵多表格绘制

\begin{table}[h] \caption{Multi-subtable demo} \label{tab:label all table} % Table 1 \begin{subtable}[t]{0.48\textwidth} \centering \caption{Subcaption A} \label{tab:label subtable A} \begin{NiceMatrixBlock}[auto-columns-width] .

2021-06-17 14:10:43 83

原创 210608-TexLive2020手动安装宏包

Download the package: https://ctan.org/pkg/pgf-pie?lang=enAssuming you are using TexLive2020: Copy to /usr/local/texlive/2020/texmf-dist/tex/latexOpen a terminal and execute the followssudo mktexlsrsudo texhashRecompile your main.texThat’..

2021-06-08 13:20:20 279

原创 210531-IEEE Latex模板下载

https://journals.ieeeauthorcenter.ieee.org/create-your-ieee-journal-article/authoring-tools-and-templates/tools-for-ieee-authors/ieee-article-templates/August 26, 2015IEEEtran is a LaTeX class for authors of the Institute of Electrical andElectronics

2021-05-31 13:56:30 135

原创 210206-结合tcolorbox与minted编写LaTex代码块

效果图源代码\documentclass{article}\newcounter{commentCount}\newcounter{filePrg}\newcounter{inputPrg}\usepackage{geometry}\geometry{paper=letterpaper,margin=2cm}\usepackage{ifthen}\usepackage{fontawesome}\usepackage[dvipsnames]{xcolor}\usepac.

2021-02-06 11:05:17 127

原创 210205-Minted选择性代码插入及样式定制与高亮

效果主文件\documentclass[a4paper]{article}\usepackage[top=0.5in, bottom=0.5in, left=0.5in, right=0.5in]{geometry}\usepackage[utf8]{inputenc}\usepackage{minted}\usemintedstyle[python]{pastie}\newmintedfile[pycode]{python}{bgcolor=mintedbackgroun..

2021-02-05 15:16:23 119

原创 200108-如何通过中国国航App获取行程单

下载中国国航APP (中英文都行)如果是护照订票,在App-行程中,根据提示绑定护照信息审核通过后,在App-行程中找到对应航班并点击进入服务预订-发送行程服务信息,输入邮箱有延迟,邮箱过了一会就可以收到了...

2021-01-09 11:17:45 2963

原创 201224-MacOS使用Mounty非安全退出NFTS后磁盘无法加载

找一台Windows,cmd输入以下命令chkdsk f: /f,注意第一个f是磁盘代号,第二个/f 是相应的命令C:\Users\USR_NAME>chkdsk f: /f输出结果Microsoft Windows [版本 10.0.18363.836](c) 2019 Microsoft Corporation。保留所有权利。C:\Users\USR_NAME>chkdsk f: /f文件系统的类型是 NTFS。卷标是 My Passport。阶段 1: 检查基.

2020-12-25 09:29:07 401

原创 201216-JupyterLab服务器远程配置

如何获取远程服务器的密钥pythonfrom IPython.lib import passwd passwd() Enter password: Verify password:'sha1:xxxx

2020-12-17 07:02:26 452 1

原创 201215-Python二维数组缺失索引的不同结果

a = np.arange(25).reshape(5,5)x1 = a[1:]x2 = a[:,1:]print(a)print(x1)print(x2)[[ 0 1 2 3 4] [ 5 6 7 8 9] [10 11 12 13 14] [15 16 17 18 19] [20 21 22 23 24]] [[ 5 6 7 8 9] [10 11 12 13 14] [15 16 17 18 19] [20 21 22 23 24]] [[

2020-12-15 14:44:53 81

原创 201212-Argparse在Python命令行与Jupyter交互模式中的不同设置

1.在命令行中使用argparseargparseargparse 是 Python 内置的一个用于命令项选项与参数解析的模块,通过在程序中定义好我们需要的参数,argparse 将会从 sys.argv 中解析出这些参数,并自动生成帮助和使用信息。当然,Python 也有第三方的库可用于命令行解析,而且功能也更加强大,比如 docopt,Click。- 创建 ArgumentParser() 对象- 调用 add_argument() 方法添加参数- 使用 parse_args() 解析添加

2020-12-13 04:51:06 265

原创 201208-PyTorch求解矩阵正交基

参考 MATLAB Linkorth is obtained from U in the singular value decomposition, [U,S] = svd(A,‘econ’). If r = rank(A), the first r columns of U form an orthonormal basis for the range of A.步骤:svd分解按秩索引代码from scipy import linalg as LAimport to.

2020-12-09 06:16:20 542

原创 201207-四步十秒通过VSCode创建Python代码片段Snippet

如何操作:Step 1: 安装插件Snippet CreatorStep 2: 在py文件中编辑好并选中需要的python代码片段Step 3: 调出控制台,并输入Create SnippetWin: Ctrl + Shift + PMac: Command + Shift + PStep 4: 选择代码片段的相关描述语言:python名称:python.json配置文件中的名称(所有Snippet都会保存在这里)命令:后面快捷插入Snippet的快捷命令名称描述:代码块的相关

2020-12-08 01:04:31 531

原创 201204-通过一个A4纸张扫描的例子通俗理解PyTorch中LSTM的参数定义

讲解import torchfrom torch import nnimport torch.nn.functional as F# 【第1步】 扫描仪参数设置 batch = 10 # 任意值:batch批训练的样本数量,可依据算力及模型性能调整batchFirst = True # 将bacth设置成input的第一个维度,与CNN等传统NN保持一致a4_width = 21 # 扫描仪每一个时间步step扫描到的特征a4_height = 2.

2020-12-05 01:54:14 116

原创 201121-将numpy数组等像素保存为图片

Specifying and saving a figure with exact size in pixels# %% Demoimport matplotlib.pyplot as pltfrom matplotlib.image import imreadimport numpy# Settingw = 5h = 5im_np = numpy.random.rand(h, w)# Plot and savefig = plt.figure(frameon=False)fig

2020-11-22 06:01:14 209

原创 201117-MacOS上通过VsCode配置跳板机连接服务器

Remote SSH: Tips and Tricks# Jump box with public IP addressHost <HUST> HostName <xxx.xxx.xxx.xxx> User <user_name> IdentityFile /Users/<user_name>/.ssh/id_rsa# Target machine with private IP addressHost <Titan&g

2020-11-18 10:10:26 922

原创 201111-Web of Science检索规则

Link检索规则大写字母不区分大小写:可以使用大写、小写或混合大小写。例如,AIDS、Aids 以及 aids 可查找相同的结果。检索运算符在各个检索字段中,检索运算符(AND、OR、NOT、NEAR 和 SAME)的使用会有所变化。例如:在“主题”字段中可以使用 AND,但在“出版物名称”或“来源出版物”字段中却不能使用。您可以在多数字段中使用 NEAR,但不要在“出版年”字段中使用。在“地址”字段中可以使用 SAME,但不能在其他字段中使用。请记住,使用检索运算符时不区分大小写。例如,

2020-11-12 00:46:01 640

原创 201026-Outlook自动删除POP/SMTP邮件分析及解决方法

原因分析:LinkWhen you connect to your POP3 mail server from your first computer, your email messages are downloaded to Outlook.When you connect from your second computer, your email messages are downloaded to Outlook.When you connect from your third

2020-10-27 00:35:20 202

原创 201025-Neptune官方测试文件

import numpy as npimport neptune# The init() function called this way assumes that# NEPTUNE_API_TOKEN environment variable is defined.neptune.init('guokliu/sandbox')neptune.create_experiment(name='minimal_example')# log some metricsfor i in rang

2020-10-26 05:04:41 467

原创 201025-Neptune中记录PyTorchLightning中的Accuracy

没有Logger的代码⚠️ forward要return模型的output⚠️traning_step要return模型的loss否则虽然code可以正常运行,但是logger没法正确记录一下记录四种记录acc的方式:accm1, accm2, accm4 以及accsm3# PyTorch Lightning 1.x + Neptune [Basic Example]# Before you start# Install dependencies# Step 1: I..

2020-10-26 00:01:31 372

原创 201024-5步PyTorchLightning中设置并访问tensorboard

导入工具箱from pytorch_lightning.loggers import TensorBoardLogger写入记录def training_step(self, batch, batch_idx): self.log('my_loss', loss, on_step=True, on_epoch=True, prog_bar=True, logger=True)创建记录器loggerlogger = TensorBoardLogger('tb_logs', n.

2020-10-25 06:58:35 1079

原创 201024-Neptune中的初始化Pytorch-Lightning设置

Step 1:网页中点击:All project后创建新项目,⚠️:首先得在网页中创建自己的项目。Step 2:在terminal中设置tokenexport NEPTUNE_API_TOKEN="your_token"Step 3:在代码中设置自己的project_name公共项目 (demo)neptune_logger = NeptuneLogger( api_key="ANONYMOUS", project_name="shared/pytorch-light

2020-10-25 05:47:32 458

原创 201023-Web of Science (WOS) 输出标签简写对照

Ref: Web of Science Core Collection Field Tags LinkWeb of Science Core Collection Field TagsThese two-character field tags identify fields in records that you e-mail, export, or save. They cover articles, books, and conference proceedings.FN File Name

2020-10-24 01:16:55 861 1

原创 201009-MacOS下利用PDFtk为Zotero添加学位论文书签

问题出处:https://github.com/l0o0/jasminum/issues/7解决方案:感谢分享!顺便说下macos(10.15)用户:下载:https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg路径:/opt/pdflabs/pdftk/. (该路径默认对外隐藏无法选取)选择路径的技巧:shift+command+G: 输入:/opt/pdfla

2020-10-10 08:21:16 454

原创 200925-Numpy指定列排序

输入a = np.array([[9, 2, 3], [4, 5, 6], [7, 0, 5]])b = a[a[:, 1].argsort()]print(a)print(b)输出[[9 2 3] [4 5 6] [7 0 5]][[7 0 5] [9 2 3] [4 5 6]]Ref: https://stackoverflow.com/questions/2828059/sorting-arrays-in-.

2020-09-25 22:46:56 202

原创 200826-阿里云CentOS配置TextLive2020若干细节

Key1: CentOS 安装TextLivehttps://blog.csdn.net/symuamua/article/details/104346416https://blog.csdn.net/m0_37952030/article/details/90646388Key2: 挂载镜像,/mnt就是一个根目录下的一个文件夹:mount -o loop texlive2020.iso /mnt/ Key3: 安装texlive2020清华镜像:https://mirrors.tun

2020-08-26 11:18:33 226

原创 200825-JupyterLab插件安装后无法正常显示的解决方法

Jupyter lab extensions not working #8122找到json文件···<conda_root>/envs/<env_name>/share/jupyter/lab/settings/build_config.json···删除重启

2020-08-26 04:25:04 3273

原创 200821-阿里云服务器ECS学生使用经验小节(非CS折腾了大半天)

标题进入阿里云高校特惠专场,免费注册并登陆https://promotion.aliyun.com/ntms/act/campus2018.html学习动手应用场景及在线学习课程,了解是否能够基本满足自己的需要https://edu.aliyun.com/roadmap/cloud?spm=5176.227096.J_6924649430.1.780d2604JPSddVhttps://edu.aliyun.com/developer?spm=5176.227096.1211930.6.2fb

2020-08-22 11:50:35 266

原创 200722-Seaborn绘制热力混淆矩阵自定义刻度

from sklearn.metrics import confusion_matriximport matplotlib.pyplot as pltimport seaborn as snsimport numpy as npsns.set()y_test = np.random.randint(1,8,100)y_pred = np.random.randint(1,8,100)fig = plt.figure()ax = fig.add_subplot(111)conf_ma

2020-07-23 05:47:48 1182

原创 200720-MacOS软件无法安装提示卸载

方法1: 命令行解锁先解锁sudo spctl --master-disable 后安装再锁定sudo spctl --master-enable方法2: MacOS命令行打开软件xattr -cr /Applications/Termius.app

2020-07-21 05:45:57 109

原创 200629-Python实现Matlab中的mahal函数

Matlab中的mahal函数马氏距离的相关介绍Python自定义函数def mathal(Y,X): mean = X.mean(axis=0) # Calculate mean of X cova = np.linalg.inv(np.cov(X.T)) # Calculate covariance of X delta=Y-mean # Calculate distance between Y and .

2020-06-30 06:31:37 335 1

原创 200624 VSCode配置reStructedText

按照个官网步骤操作: https://docs.restructuredtext.net/articles/index.html有四个注意点:使用Python 3.x 版本选择语言:reStructedText(否则快捷键无效)点击conf.py后按照提示配置json文件如果source是一个独立的文件夹则需要如图配置,指定python的绝对路径.vscode/settings.json{ "restructuredtext.builtDocumentationPath": "${wor

2020-06-25 02:26:16 544 1

原创 200518-如何提取Matlab中figure中的line数据

Ref: How do I extract data points from a plot?% Create data and plotx = linspace(-3,3,100)y1 = sin(x)y2 = cos(x)figure(1)subplot(2,1,1)plot(x, y1)subplot(2,1,2)plot(x, y2)% Get lines in subplotsh1 = findobj(subplot(2,1,1),'Type','line')xx

2020-05-19 07:10:12 784

原创 200510-MacOS安装miniconda默认terminal中python版本的切换

==> For changes to take effect, close and re-open your current shell. <==If you'd prefer that conda's base environment not be activated on startup, set the auto_activate_base parameter to false: conda config --set auto_activate_base falseTh

2020-05-11 04:40:01 453

原创 200429-SnippetMaker快速制作SublimeText3代码片段snippet

Step1: 安装SnippetMaker工具包Mac: Shift + Command + P : Install Package : SnippetMaker : 点击安装Win: Shift + Control + P : Install Package : SnippetMaker : 点击安装Step2: 选中代码片创建snnipet选中代码片段打开控制面板Mac: Sh...

2020-04-29 23:50:13 252

python ds evidence theory code

ds 证据理论 python 代码

2017-06-12

matlab图形空白裁剪及子图调整

190313-1行命令裁剪Matlab图像空白及调整子图间距;

2019-03-13

MNIST_data

MNIST_data手写体数字识别(友情提示-与py文件放在同一目录内): import tensorflow.examples.tutorials.mnist.input_data as input_data mnist_data = input_data.read_data_sets('MNIST_data', one_hot=True)

2018-02-05

2017大数据发展趋势Top10白皮书

2016 was a landmark year for big data with more organizations storing, processing, and extracting value from data of all forms and sizes. In 2017, systems that support large volumes of both structured and unstructured data will continue to rise. The market will demand platforms that help data custod

2017-01-12

windows10桌面美化

window10桌面美化 参见 http://blog.csdn.net/qq_33039859/article/details/78387485

2017-10-29

斯坦福大学凸优化课程Convex Optimization字幕及Youtube字幕下载代码

http://blog.csdn.net/qq_33039859/article/details/78476993

2017-11-08

scipy-0.19.1-cp36-cp36m-win_amd64.whl

scipy-0.19.1-cp36-cp36m-win_amd64.whl

2017-07-16

tensorflow-1.2.0rc2-cp36-cp36m-win_amd64.whl

tensorflow-1.2.0rc2-cp36-cp36m-win_amd64.whl

2017-06-14

windows10设置豆沙绿-双击执行即可

windows10设置豆沙绿-双击执行即可;windows10设置豆沙绿-双击执行即可

2018-03-29

matlab ds evidence theory

ds 证据理论 matlab 代码

2017-06-12

tensorflow_gpu-1.2.0rc2-cp36-cp36m-win_amd64.whl

tensorflow_gpu-1.2.0rc2-cp36-cp36m-win_amd64.whl

2017-06-14

recurrent neural network without a phd

recurrent neural network without a phd.pdf 出处:https://github.com/martin-gorner/tensorflow-rnn-shakespeare

2018-04-16

SurfEasy-Chrome代理插件

SurfEasy-Chrome代理插件;SurfEasy-Chrome代理插件;SurfEasy-Chrome代理插件;

2018-04-22

tensorflow model save and restore example

tensorflow model save and restore example

2017-06-15

《程序员的数学2-3》Ruby程序+Gnuplot+代码+勘误+win7补丁

《程序员的数学2-3》Ruby程序+Gnuplot+代码+勘误+win7补丁

2017-01-19

a mov file with dog bark

a mov file with dog bark

2017-06-28

A jupyter note result html file for Surface defect detection

A jupyter note result html file for Surface defect detection

2018-03-04

Chrome and SurfEasy Extension for Linux

Chrome and SurfEasy Extension for Linux。Chrome and SurfEasy Extension for Linux.

2017-12-02

pdf code pass

pdf code pass

2017-06-12

吴恩达-深度学习-第五课-第二周课件-截图版pdf版

吴恩达-深度学习-第五课-第二周课件-视频截图版pdf版(没找到对应的ppt版本),介意者请勿下载,欢迎分享ppt原版。

2018-04-14

deeplearning without a PHD (code print)

deeplearning without a PHD (code print)

2017-06-12

deeplearning without a PHD

2017谷歌云大会,深度学习代码示例

2017-06-12

hustliu2018的留言板

发表于 2020-01-02 最后回复 2020-03-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人 TA的粉丝

提示
确定要删除当前文章?
取消 删除