0%

1. Introduction

Blending 集成方法的学习过程中,可以发现 Blending 在集成过程中只使用到了验证集的数据,这就造成了很大的浪费。因此可以靠用使用 Stacking 集成方法进行改进。

Read more »

1. Introduction

Blending 方法可以看是一个简化版的 Stacking 方法,blend 的中文意思是 “混合”,这就很好地诠释了 Blending 方法的思想 —— 不同模型的混合,也就是集成的本意。该方法仅在验证集中进行预测,如下为 Blending 的步骤:

Read more »

1 Pytorch brief

1.1 Create Tensor

  • empty

    1
    2
    import torch
    x1 = torch.empty(5, 3) # 构造未初始化的矩阵
  • rand

    1
    x2 = torch.rand(5, 3) # 构造随机初始化的正态分布矩阵
Read more »

1 Stata data operation

1.1 Data Operation

1.1.1 Browse data

  • browse / edit

    browse 用于打开或编辑数据浏览器,相当于单击数据浏览器或编辑按钮。命令格式:

    1
    browse/edit [varlist] [if] [in]
  • rename

    rename 用于对变量重新命名。格式:

    1
    rename (oldname) (newname)
Read more »

1 Recognize LaTeX\LaTeX

通过更换文档类型,可以正确显示中文。

Read more »

Markdown

1. Title

三级标题

四级标题

格式及快捷键如下:

1
2
3
4
5
6
7
# Markdown

## 1. Title

### 三级标题

#### 四级标题
Read more »

1. 引言

影响力,一般认为指的是用一种为别人所乐于接受的方式,改变他人所乐于接受的方式,改变他人的思想和行动的能力。该书由著名社会心理学家 Robert B. Cialdini 所著, Cialdini 倾其职业生涯来研究影响力,在说服、顺从和谈判领域享有广泛的国际声誉。因其在商业道德和政策运用方面所作的前沿研究,常被称为“影响力教父”。

Read more »

1 Stata operation

1.1 Import data

  • use

    grilic_small.dta 文件的目录请根据自己的文件目录填写,数据文件可在陈强老师的网站下载,Click here,选择《计量经济学及Stata应用》中的数据集下载。

    1
    use "D:\Demo\University\XMU\Class_files\Econometrics\Econometrics and Stata application\Data-Finished-bachelor\grilic_small.dta", clear
Read more »

1 Introduction

本文为参考洪永淼老师《高级计量学》复习高级计量经济学的学习笔记。

Read more »

1 Markov model

1.1 Preparation and definition

  • Import modules

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    import numpy as np
    import pandas as pd
    from numpy import linalg as la

    from sklearn.metrics import mean_absolute_error, r2_score
    from sklearn.metrics import mean_squared_error

    # Plot module
    import matplotlib.pyplot as plt
    plt.rcParams['font.sans-serif'] = ['SimHei']
    # Microsoft YaHei, Times New Roman
    plt.rcParams['axes.unicode_minus'] = False
Read more »