自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(52)
  • 收藏
  • 关注

原创 R2 MSE Linear Regression

g = 0g = g + xx = 0y = 0。

2022-10-01 11:13:00 472 1

原创 VS code 代码插入作者信息

https://www.cnblogs.com/bluettt/p/12530289.htmlperference -> snippetspython.json{“HEADER”:{“prefix”: “header”,“body”: [// “#!/usr/bin/env python”,“# -- encoding: utf-8 --”,“‘’'”,“@File : $TM_FILENAME”,“@Time : CURRENTYEAR/CURRENT_YE

2022-05-26 09:53:39 437

原创 Data Normalization

https://www.cnblogs.com/pejsidney/p/8031250.html数据的标准化(normalization)和归一化数据的标准化(normalization)是将数据按比例缩放,使之落入一个小的特定区间。在某些比较和评价的指标处理中经常会用到,去除数据的单位限制,将其转化为无量纲的纯数值,便于不同单位或量级的指标能够进行比较和加权。其中最典型的就是数据的归一化处理,即将数据统一映射到[0,1]区间上。目前数据标准化方法有多种,归结起来可以分为直线型方法(如极值法、标准差法

2022-03-26 22:02:24 593

原创 Interesting Standard Deviation

https://www.mathsisfun.com/data/standard-deviation.htmlStandard DeviationThe Standard Deviation is a measure of how spread out numbers are.Its symbol is σ (the greek letter sigma)The formula is easy: it is the square root of the Variance. So now you as

2022-03-21 09:59:35 231

原创 Seaborn | Distribution Plots

https://www.geeksforgeeks.org/seaborn-distribution-plots/?ref=gcseDifficulty Level : MediumLast Updated : 26 Aug, 2019Seaborn is a Python data visualization library based on Matplotlib. It provides a high-level interface for drawing attractive and infor

2022-03-18 21:40:04 380

原创 Histograms

https://mode.com/example-gallery/python_histogram/

2022-03-18 10:54:41 101

原创 Measures of Scale

https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htmScale, Variability, or Spread A fundamental task in many statistical analyses is to characterize the spread, or variability, of a data set. Measures of scale are simply attempts to estimate t

2022-03-17 23:01:43 671

原创 What are outliers in the data

https://www.itl.nist.gov/div898/handbook/prc/section1/prc16.htmBox plot construction The box plot is a useful graphical display for describing the behavior of the data in the middle as well as at the ends of the distributions. The box plot uses the median

2022-03-17 22:01:11 471

原创 Working with excel files using Pandas

https://www.geeksforgeeks.org/working-with-excel-files-using-pandas/

2022-03-09 16:32:53 624

原创 DataFrame 修改列名

先建立一个DataFrameimport pandas as pda = pd.DataFrame({‘A’:[1,2,3], ‘B’:[4,5,6], ‘C’:[7,8,9]})aA B C0 1 4 71 2 5 82 3 6 9方法一:直接赋值a.columns = [‘a’,‘b’,‘c’]aa b c0 1 4 71 2 5 82 3 6 9一次要更新所有的列名方法二:字典映射a.rename(co

2022-03-04 10:20:14 969

原创 熊猫 分组

import pandas as pdimport numpy as npgroup by : split apply combinedic_gpa = {‘class’:[‘A’,‘B’,‘A’,‘B’],‘sname’:[‘tom’,‘kite’,‘tom’,‘hanmeimei’],‘math’:(np.random.rand(4)*100).round(),‘english’:(np.random.rand(4)*100).round()}df = pd.DataFrame(dic_

2022-03-02 17:22:28 855

原创 pandas errors Pattern matched multiple keys

Set some Pandas options as you likeold version#pd.set_option(‘max_columns’, 40)#pd.set_option(‘max_rows’, 30)new versionpd.options.display.max_rows=30pd.options.display.max_columns=40

2022-03-02 10:36:40 2099

原创 windows powershell 用户权限策略问题

https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.2

2022-03-01 20:46:16 207

原创 pandas resample

/**Alias FrequencyB: business day frequencyD: calendar day frequencyW: weekly frequencyM: month end frequencyBM: business month end frequencyMS: month start frequencyBMS: business month start frequencyQ: quarter end frequencyBQ: business quarter

2022-02-21 09:53:30 508

原创 如何在 Ubuntu 20.04 LTS 上安装 Stacer

在 Ubuntu 20.04 LTS Focal Fossa 上安装 Stacer步骤 1. 首先,通过apt在终端中运行以下命令确保所有系统包都是最新的。sudo apt updatesudo apt upgrade步骤 2. 在 Ubuntu 20.04 上安装 Stacer。从 Ubuntu 存储库安装 Stacer。默认情况下,Stacer 在 Ubuntu 的默认存储库中可用。运行下面的命令来安装它:sudo apt install stacer从 GitHub 安装 Stacer

2022-02-17 10:17:20 1042 1

原创 Malformed version string ‘~‘: invalid character(s)

conda upgrade -n base -c defaults --override-channels conda

2022-01-27 15:51:06 2711 4

原创 conda google - lab

conda install -c conda-forge google-colab

2022-01-25 16:51:16 412

原创 NLTK Data installation

ls ab.zip | xargs -n1 unzip -o*解压所有的zipManual installationCreate a folder nltk_data, e.g. C:\nltk_data, or /usr/local/share/nltk_data, and subfolders chunkers, grammars, misc, sentiment, taggers, corpora, help, models, stemmers, tokenizers.Download ind

2022-01-25 08:47:01 117

原创 jupyter notebook 修改默认目录

command:jupyter notebook --generate-configfind -> your name /.jupyter/ jupyter_notebook_config.pysearch:notebook_dir

2022-01-23 18:12:25 998

原创 jupyter add kernel

First, install nb_conda_kernels in your base environment. Once this is installed any notebook running from the base environment will automatically show the kernel from any other environment which has ipykernel installed.(base)$ conda install nb_conda_ker.

2022-01-23 11:04:31 609

原创 conda 启动 默认环境修改 mac

mac :~/ .bash_profileconda activate nlp36

2022-01-23 10:36:24 986

原创 jupyter notebook nbextension

How to Install ExtensionsTo install extensions, run the following code in the command prompt or terminalpip install jupyter_contrib_nbextensionsThen run the code below to add the nbextensions files into the Jupyter server’s search directory.jupyter con

2022-01-23 09:41:43 566

原创 conda channel 中科大

使用说明Anaconda 安装包可以在 https://mirrors.ustc.edu.cn/anaconda/archive/ 下载。Miniconda 安装包可以在 https://mirrors.ustc.edu.cn/anaconda/miniconda/ 下载。添加USTC仓库镜像:conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/conda config --add channels

2022-01-23 00:20:19 547

原创 conda 环境管理 看官方文档

https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#determine-current-env

2022-01-21 10:16:21 811

原创 spacy 模型下载失败解决方法

改host ip 也没用 就是不让你访问用conda 吧 别自己瞎折腾 毫无意义conda install -c conda-forge spacy-model-en_core_web_sm这是地址https://github.com/explosion/spacy-models

2022-01-20 15:44:17 1141

原创 jupyter notebook 添加 conda 虚拟环境

激活conda环境source activate cym安装ipykernelconda install ipykernel将环境写入notebook的kernel中python -m ipykernel install --user --name 环境名 --display-name “python 环境名”python -m ipykernel install --user --name cym --display-name “python cym”打开notebookj.

2022-01-18 22:00:39 914

原创 conda 升级 sklearn

pip install --user --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple --ignore-installed scikit-learn

2021-12-20 15:04:18 612

转载 How to Run MySQL as a Normal User

UserOn Windows, you can run the server as a Windows service using a normal user account.On Linux, for installations performed using a MySQL repository or RPM packages, the MySQL server mysqld should be started by the local mysql operating system user. St

2021-03-25 15:20:21 106

原创 mysql check variables

mysqld --verbose --help

2021-03-25 14:06:36 128

转载 sudo su doesn‘t change users for mysql

19su invokes the other user’s login shell as given in /etc/passwd. In your case that’s /bin/false so you don’t get any interactive shell.Usesudo -u test /bin/bashorsudo -u test /usr/bin/mysqlor something like that instead.

2021-03-25 11:12:08 78

转载 ERROR 1449 (HY000): The user specified as a definer (‘mysql.infoschema‘@‘localhost‘) does not exist

2After lots of attempt,the solution is delete user mysql.infoschema first and then do vamshi’s steps:Create user:mysql> CREATE USER ‘mysql.infoschema’@‘localhost’ IDENTIFIED BY ‘password’;Query OK, 0 rows affected (0.00 sec)Grant permissions:mysql

2021-03-25 10:08:28 364

转载 mysqld_multi: How to run multiple instances of MySQL

The need to have multiple instances of MySQL (the well-known mysqld process) running in the same server concurrently in a transparent way, instead of having them executed in separate containers/virtual machines, is not very common. Yet from time to time th

2021-03-25 08:11:21 213

原创 MySQL Cluster Docker Images

MySQL Cluster Docker ImagesThese are optimized MySQL Cluster Docker images, created and maintained by the MySQL team at Oracle. The available versions are:MySQL Cluster 7.5 (tag: 7.5)MySQL Cluster 7.6 (tag: 7.6)MySQL Cluster 8.0, the latest GA version

2021-03-21 21:46:43 116

原创 docker internet access

127First thing to check is run cat /etc/resolv.conf in the docker container. If it has an invalid DNS server, such as nameserver 127.0.x.x, then the container will not be able to resolve the domain names into ip addresses, so ping google.com will fail.Se

2021-03-20 21:44:27 97

原创 HOW TO FIND MYSQL BINARY LOGS, ERROR LOGS, TEMPORARY FILES?

Have you ever spent a lot of time trying to locate where MySQL keeps some file? Here is a quick way to find all this information in one place.The obvious way is through examining database options in my.cnf or looking at the output of SHOW GLOBAL VARIABLES

2021-03-18 22:32:11 101

转载 GCC and Make Compiling, Linking and Building

https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.htmlGCC and MakeCompiling, Linking and BuildingC/C++ ApplicationsGCC (GNU Compiler Collection)1.1 A Brief History and Introduction to GCCThe original GNU C Compiler (GCC) is developed by

2021-03-08 14:21:39 1856

原创 Java parallel BucketSort 3.0

除了求最值没有优化,其他做了一点优化,主要是内存的使用,但是目前跑起来还是需要 18 gigs 内存左右,因为需要对 三亿个随机整数进行排序,开了4个线程,动态开辟线程会更慢.linear_time: 14.669 secsparallel_time: 9.279 secsspeed up : 1.5808815605129865最好情况可以加速一倍,不理想!也许12个线程全开会好一些.个人感觉java不是为了高性能计算而生的,更适合做互联网应用. 个人建议不要使用线程池,会更慢!因为我们都是一锤子

2021-03-06 14:08:14 115

原创 Ubuntu git config

git config --global user.name “your username”git config --global user.email “@@@@@”(it seems like meaningless )// ctrl+alt+t …open a terminalssh-keygen -C ‘@@@@@’ -t rsacd ~/.sshvim id_rsa.pub// copy the random key to gitee --> ssh key// connect

2021-03-04 12:15:31 929 1

转载 Ubuntu installation

https://www.cnblogs.com/masbay/p/10745170.html

2021-03-03 15:30:42 157 2

原创 Ubuntu uninstall apt software

Example, run the commands below to list all install packages…sudo apt list --installedThat should list all installed package…To remove a package you find on the list, simply run the apt-get or apt command to uninstall it…sudo apt remove package_nameRe

2021-03-03 13:59:44 227

空空如也

空空如也

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

TA关注的人

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