树莓派烧录镜像 Raspberry Pi Imager
一、下载镜像
官网:https://www.raspberrypi.com/software/
1、Manually install an operating system image 选择指定版本安装
2、Raspberry Pi Desktop for PC and Mac 选择桌面版
二、烧录镜像
1、安装镜像烧录工具。
2、启动树莓派镜像烧录器。
3、根据需要进行配置。例如开启ssh、配置WiFi。
4、开始烧录。
强化学习 Gym MountainCar 山地车
MountainCar 山地车
import gym
# MountainCar 山地车
env = gym.make(‘MountainCar-v0′, render_mode=’human’)
for i_episode in range(10):
observation = env.reset()
for t in range(100):
env.render()
print(observation)
action = env.action_spa
强化学习 Gym CartPole 倒立摆
CartPole 倒立摆
import gym
# CartPole 倒立摆
env = gym.make(‘CartPole-v1’, render_mode=”human”)
for episode in range(10):
env.reset()
print(“Episode finished after {} timesteps”.format(episode))
for _ in range(100):
env.render()
env.st
强化学习 Gym 安装以及入门
官网:https://www.gymlibrary.dev/
https://github.com/openai/gym
Gym是一个研究强化学习算法的工具箱。需要安装2个库 gym、pygame。
一、安装库
1、安装gym。最小安装的Gym库只包括少量的内置环境,如算法环境、简单文字游戏环境和经典控制环境。box2d
pip install gym -i https://pypi.tuna.tsinghua.edu.cn/simple/
完整安装。gym库的一些内置的
什么是强化学习?
强化学习(Reinforcement Learning, RL),又称再励学习、评价学习或增强学习,是机器学习的范式和方法论之一,用于描述和解决智能体(agent)在与环境的交互过程中通过学习策略以达成回报最大化或实现特定目标的问题。
强化学习的常见模型是标准的马尔可夫决策过程(Markov Decision Process, MDP)。按给定条件,强化学习可分为基于模式的强化学习(model-based RL)和无模式强化学习(model-free RL),以及主动强化学习(a
计算机视觉与机器视觉
一、什么是计算机视觉?
计算机视觉是指用摄像机和计算机来复制人类感知和理解视觉信息的能力。
主要目的:通过对于视觉信息的获取、处理、分析理解,从而产生相应的行为决策。
视觉信息:由一幅静止图像、多幅静止图像、或者一组视频提供的信息。
二、什么是机器视觉?
机器视觉:用来泛指实现基于图像的自动检测、控制和分析的相关技术和方法。
主要目的:实现工业生产过程中基于图像的自动化和智能化。
基本功能:外观检测、尺寸测量、识别计数、视觉定位。
三、图像处理、计算机视觉和
numpy np.arange() 用法
#填入一个参数,默认起点0,终点为参数,步长为1。
x = np.arange(10)
print(x)
#填入二个参数,起点为参数a,终点为参数b,步长为1。
y = np.arange(1, 10)
print(y)
#填入三个参数,起点为参数a,终点为参数b,步长为c。
z = np.arange(1, 10, 0.5)
print(z)
树莓派烧录镜像 balenaEtcher
树莓派。红灯常亮,绿灯闪烁熄灭,无法进入系统。重新烧录系统试试。
一、下载镜像
官网:https://www.raspberrypi.com/software/
1、Manually install an operating system image 选择指定版本安装
2、Raspberry Pi Desktop for PC and Mac 选择桌面版
二、烧录镜像
将内存卡通过读卡器插到电脑上,然后将内存卡格式工具拷贝到内存卡中,格式化内存卡注意不要选错磁盘。
c# 操作redis
一、安装StackExchange.Redis
通过NuGet 安装 StackExchange.Redis。
二、字符串
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using
Newtonsoft.Json 用法
NuGet安装Newtonsoft.Json
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows
c# chart 控件 曲线图
SeriesChartType.Line 折线 SeriesChartType.Spline 曲线
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Ta
c# chart 控件 散点图
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Wi
c# chart 控件 柱状图
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Wi
c# chart 控件 饼图
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Wi
c# chart 控件 折线图 数据点 凸显
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Wi
c# chart 控件 折线图 代码设置属性
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Wi
c# chart 控件 折线图
Series->ChartType 选择图标类型。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Syste
apache https 重定向 http
https证书有时候过期,造成baidu手机端app访问网站出现证书错误,因此将https重定向到http。
1、WinSCP连接服务器。ctrl+alt+h,显示隐藏文件。
2、修改 .htaccess 文件。
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} ^on$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [NC,L,R]
</IfModule>
TensorFlow 线性回归 Sequential 模型保存及加载
import numpy as np
import tensorflow as tf
import keras
import numpy as np
import matplotlib.pyplot as plt
from keras.layers import Dense
from keras.models import Sequential
from keras.optimizers import SGD
from keras.layers import