机器学习课程-温州大学-时间序列总结时间戳 表示特定的时刻 ,比如现在 时期 比如2018年或者 2018年10月 时间间隔 由起始时间戳和 结束时间戳表示 8 创建时间序列 Pandas中,时间戳使用Timestamp(Series派生的子 类)对象表示。 该对象与datetime具有高度的兼容性,可以直接通过 to_datetime()函数将datetime转换为TimeStamp对象。 pd.to_datetime('20180828') 以 时间戳为索引的Series对象。 date_ser = pd.Series([11, 22, 33], index=date_index) 2018-08-20 11 2018-08-28 22 2018-09-08 33 11 创建时间序列 还可以将包含多个datetime对象的列表传给 index参数,同样能创建具有时间戳索引的 Series对象。 date_list date_list = [datetime(2018, 1, 1), datetime(2018, 1, 15] time_se = pd.Series(np.arange(6), index=date_list) 12 创建时间序列 如果希望DataFrame对象具有时间戳索引, 也可以采用上述方式进行创建。 data_demo = [[11, 22, 33], [44, 55, 66]] date_list0 码力 | 67 页 | 1.30 MB | 1 年前3
keras tutorialbasics of deep learning, Keras models, Keras layers, Keras modules and finally conclude with some real-time applications. Audience This tutorial is prepared for professionals who are aspiring to make ............................................................................ 77 14. Keras ― Time Series Prediction using LSTM RNN .................................................................... ........................................................................... 88 16. Keras ― Real Time Prediction using ResNet Model ...................................................................0 码力 | 98 页 | 1.57 MB | 1 年前3
Experiment 1: Linear Regression(x , y , ’ o ’ ) ; ylabel ( ’ Height in meters ’ ) xlabel ( ’Age in years ’ ) You should see a series of data points similar to Fig. 1. 2 3 4 5 6 7 8 Age in years 0.7 0.8 0.9 1 1.1 1.2 1.3 ’− ’ ) % remember that x i s now a matrix % with 2 columnsand the second % column contains the time info legend ( ’ Training data ’ , ’ Linear r e g r e s s i o n ’ ) Note that for most machine learning = ( x ( : , 3 ) − mu( 3 ) ) . / sigma ( 3 ) ; 5.1 Selecting A Learning Rate Using J(θ) Now it’s time to select a learning rate α. The goal of this part is to pick a good learning rate in the range of0 码力 | 7 页 | 428.11 KB | 1 年前3
Lecture 1: Overviewclinical measurements. Predict the temperature at any location inside a building using weather data, time, door sensors, etc. Feng Li (SDU) Overview September 6, 2023 27 / 57 Unsupervised Learning For goal of reducing the amount of supervision required compared to supervised learning. At the same time, improving the results of unsupervised clustering to the expectations of the user. With lots of unlabeled from the rest of the data. But we know sin(2πx) is not a polynomial function, it has an infinite series representation with terms of arbitrarily high order. How can it be good to use a model that we know0 码力 | 57 页 | 2.41 MB | 1 年前3
机器学习课程-温州大学-13机器学习-人工神经网络Computers, 1993, 37:119-166. [8] LeCun Y, Bengio Y. Convolutional networks for images, speech, and time series[J]. The handbook of brain theory and neural networks, 1995, 3361(10): 1995. 29 谢 谢!0 码力 | 29 页 | 1.60 MB | 1 年前3
动手学深度学习 v2.0import math import os import random import re import shutil import sys import tarfile import time import zipfile from collections import defaultdict import pandas as pd import requests from IPython 了实现这一点,需要我们对计算进 行矢量化,从而利用线性代数库,而不是在Python中编写开销高昂的for循环。 %matplotlib inline import math import time import numpy as np import torch from d2l import torch as d2l 为了说明矢量化为什么如此重要,我们考虑对向量相加的两种方法。我们实例化两个全为1的10000维向量。 [] self.start() def start(self): """启动计时器""" self.tik = time.time() def stop(self): """停止计时器并将时间记录在列表中""" self.times.append(time.time() - self.tik) return self.times[-1] def avg(self): """返回平均时间"""0 码力 | 797 页 | 29.45 MB | 1 年前3
机器学习课程-温州大学-03机器学习-逻辑回归Regression selection and shrinkage via the lasso[J]. Journal of the Royal Statistical Society Series B, 1996, 58(1): 267–288. 23 谢 谢!0 码力 | 23 页 | 1.20 MB | 1 年前3
机器学习课程-温州大学-02机器学习-回归Regression selection and shrinkage via the lasso[J]. Journal of the Royal Statistical Society Series B, 1996, 58(1): 267–288. [7] TIBSHIRANI R, BICKEL P, RITOV Y, et al. Least absolute shrinkage and0 码力 | 33 页 | 1.50 MB | 1 年前3
机器学习课程-温州大学-01机器学习-引言数据集所需的工具。Pandas提供了大量能使我们快速便捷地处理数据的 函数和方法。你很快就会发现,它是使Python成为强大而高效的数据分 析环境的重要因素之一。 63 Python模块-Pandas ⚫ 基本数据结构 Series 一维数据结构,包含行索 引和数据两个部分 DataFrame 二维数据结构,包含 带索引的多列数据, 各列的数据类型可能 不同 64 Python模块-Pandas ⚫ 数据索引0 码力 | 78 页 | 3.69 MB | 1 年前3
机器学习课程-温州大学-01深度学习-引言数据集所需的工具。Pandas提供了大量能使我们快速便捷地处理数据的 函数和方法。你很快就会发现,它是使Python成为强大而高效的数据分 析环境的重要因素之一。 64 Python模块-Pandas ⚫ 基本数据结构 Series 一维数据结构,包含行索 引和数据两个部分 DataFrame 二维数据结构,包含 带索引的多列数据, 各列的数据类型可能 不同 65 Python模块-Pandas ⚫ 数据索引0 码力 | 80 页 | 5.38 MB | 1 年前3
共 38 条
- 1
- 2
- 3
- 4













