Linux 系统启动过程

Linux 系统启动过程 1.BIOS 上电自检(POST) 上电自检,由硬件的部分来完成,当电脑接通电源,电脑开始执行 BIOS的 POST过程,以确认硬件的基本功能是

排序算法

1 import numpy as np 冒泡 1 2 3 4 5 6 7 8 9 10 def bubble_sort(data): for i in range(len(data)): x = 0 for j in range(len(data)-i-1): print(data) if data[j] > data[j+1]: x = 1 data[j] ,data[j+1] = data[j+1],data[j] if not x: break 1 2 3 4 sample = np.random.randint(10,size = 10) print(sample) print('--------') bubble_sort(sample) 1 2 3 4 5 6 7 8 9 10 11 12

决策树

1.定义 决策树分为分类树和回归树两种,分类树对离散变量做决策树,回归树对连续变量做决策树。 在分类问题中,表示基于特征对实例进行分类的过程。分

EXSIM设置

Path Duration the duration of an EQ signal at hypo-central distance can generally be represented as (according Atkinson and Boore 1995) $T({R} ) = T{_0} + dR ​$ where $T{_0}​$ is the source duration, and $d​$ is the coefficient controlling the increase of duration with distance; $d​$ is derived empirically. $d​$ may be

Matplotlib可视化

1 2 3 4 5 6 import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import seaborn as sns import warnings; warnings.filterwarnings(action='once') 散点图 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 #Import dataset midwest = pd.read_csv("datasets/midwest_filter.csv") # Prepare Data categories = np.unique(midwest['category']) colors