Introduction to sklearn -- implementation of regression decision tree in sklearn_ Example demonstration 1
Introduction to sklearn -- implementation of regression decision tree in sklearn_ Example demonstration 1
1. Introduction to regression tree
Almost all parameters in as like as two peas are categorization. The parameters of the regression tree function are as follows:
class sklearn.tree.DecisionTreeRegressor (criterion='mse', splitter='best' ...
Added by Pedestrian on Sun, 23 Jan 2022 08:47:26 +0200
Python error note: Python's torch Normal() function
0. Preface
In the middle, there are many process notes to modify the code, which are not available. They are only used to record ideas. If you want to see the final code, turn to the bottom directly.
Run Li Mo 2021 deep learning linear regression code as follows
def synthetic_data(w, b, num_examples):
"""generate y = Xw + b + Noise."" ...
Added by thedotproduct on Sun, 23 Jan 2022 06:08:32 +0200
Time series analysis - missing value processing
Time series analysis - missing value processing
This article is based on the article of Zhihu boss
Cleaning data
Data cleaning is an important part of data analysis, and time series data is no exception. This section will introduce the data cleaning methods for time series data in detail.
Missing value processingChange time and frequencySmo ...
Added by mmarif4u on Sun, 23 Jan 2022 04:48:46 +0200
Several Python data reading and writing methods are oriented to Txt, csv documents, MongoDB, MySQL and other databases
1. Preface
Hello, everyone
In the daily process of dealing with Python, it is inevitable to involve data reading and writing business. For example, when doing crawler, you need to store the crawled data locally first, and then do the next step of processing; When doing data visualization analysis, you need to read the data from the hard disk ...
Added by watson516 on Sun, 23 Jan 2022 03:41:34 +0200
ResNet actual combat: tensorflow2 Version x, ResNet50 image classification task (small dataset)
abstract
This example extracts part of the data in the plant seedling data set as the data set. The data set has 12 categories. Today, I will work with you to implement tensorflow2 For the X version image classification task, the classification model uses ResNet50.
Through this article, you can learn:
1. How to load picture data and process ...
Added by The_Walrus on Sat, 22 Jan 2022 19:13:57 +0200
torch.optim.lr_scheduler -- learning rate adjustment summary
Reference link: https://blog.csdn.net/qyhaill/article/details/103043637
Call example:
import torch
import torch.nn as nn
from torch.optim.lr_scheduler import LambdaLR
initial_lr = 5
class model(nn.Module):
def __init__(self):
super().__init__()
self.conv1 = nn.Conv2d(in_channels=3, out_channels=3, kernel_size=3)
def ...
Added by jamesp on Sat, 22 Jan 2022 12:00:45 +0200
7&10.8 TPE Optimization Based on HyperOpt
2 TPE optimization based on HyperOpt
Hyperopt optimizer is one of the most common Bayesian optimizers at present. Hyperopt integrates several optimization algorithms including random search, simulated annealing and TPE (Tree-structured Parzen Estimator Approach). Compared to Bayes_opt, Hyperopt is a more advanced, modern, better maintained opt ...
Added by mmponline on Fri, 21 Jan 2022 22:23:32 +0200
Team learning graph neural network (seventh)
Creation of super large data set class
Previously, we only touched on data sets that can store all data in memory. The data set classes corresponding to these data sets load all data into memory when creating objects. However, if the data set is super large, it is difficult for us to have enough memory to store all the data completely. Therefo ...
Added by rxero on Fri, 21 Jan 2022 19:40:14 +0200
Implementation of Generate Countermeasure Network (GAN) and its Variant (DCGAN):Based on tensorflow
Preface
To understand what generates an antagonistic network, first explain supervised learning and unsupervised learning: Supervised learning: Machine learning based on a large number of labeled training sets and test sets, such as a picture classifier that requires a series of pictures and corresponding labels ("cat", "dog ...
Added by mentalfloss on Fri, 21 Jan 2022 18:33:00 +0200
Neural network model encounters bottleneck? It's too late for you to meet these Tricks!
In fact, most of the progress in image classification can be attributed to the improvement of training process, such as the increase of data and the change of optimization methods. However, most improvements are not described in detail. Therefore, the authors test and implement these improved methods in this paper, and evaluate the impact of th ...
Added by graziano on Fri, 21 Jan 2022 01:08:32 +0200