由于 Github 证书验证问题而无法连接的错误 (fatal: unable to access ‘...‘ : SSL certificate problem: unable)

执行hexo d将博客部署到GitHub上报错: unable to access 这个问题很常见,有的是需要将HTTPS改为SSH地址,但是需要注意不只是改前面几个字符,需要打开自己仓库中,克隆代码里面找到SSH地址的代码,但是对于有的小伙伴来说没有用,这里提供了另一种方法,亲测有效 1、错误描述: 2、解决方法: 在GitHub上生成自己的token (1)点击头像下面的Settings (2) 点击左侧栏的Developer settings (3)点击左侧栏的Personal access tokens,点击Generate new token新建一个to. 阅读详情
AI摘要

本文主要解决使用加速器访问GitHub时产生的证书验证问题。作者在排查过程中发现是Steam++证书导致电脑无法验证GitHub证书。文中给出三种解决方案,包括使用ssh方式连接、不进行证书验证、进行证书验证,并提及使用方案后可能出现的其他问题及解决办法。

前言

  • 笔者在解决这个问题的过程中,踩下了一系列的坑
  • 同时,笔者发现针对这方面的网络资料也比较少、比较零散
  • 因此写下这篇文章,让大家避开笔者之前踩过的坑,顺利的解决问题
  • 本文解决的问题是:在使用 Steam++ (即:Watt Toolkit )加速器 对 Github 进行加速的背景下,所产生的 证书验证 问题
  • 如果你对过程和原理不感兴趣,可直接移步到 解决方案

背景

  • 昨天,笔者真是脑子一抽,突然想用 https 的方式来提交修改好的代码到 github 仓库上
  • 不曾想到,笔者竟然打开了潘多拉魔盒…
  • 在输入了下面的 git 命令后:
git push origin develop
  • 报了一个错误:fatal: unable to access '...' : SSL certificate problem: unable
  • 从错误信息来看,意思是说:连接失败,SSL 证书问题
  • 当笔者看到这个证书问题时,心里感觉不妙啊…
  • 因为笔者之前在学习 https原理的时候,对于那些加密通信、数字签名、数字证书的内容只是快速地浏览了一遍,并没有花太多的时间去认真学习,加上太久没用,基本忘光了…
  • 所以笔者感觉这次的问题,不花点时间,可能有点难排查
  • 果然!当笔者去找这个问题的资料时,不是找到的资料不全,就是过程不清不楚,很多资料无法解决当前这个问题,询问 AI 得到的答案也是不痛不痒
  • 最后没有办法,笔者下定决心,认真的再学一遍 https 原理 ,自己去排查!
  • 最后,凭着所学知识,笔者快速排查了一下自己电脑的CA证书,也没发现什么毛病,真是奇了怪了,到底什么毛病呢?
  • 然后,笔者灵机一动:既然在终端里面使用 https 访问 github 难排查,那为何我不用浏览器呢,同一台电脑的同一个访问方式,github 证书的验证应该是相同的吧?如果我在浏览器查找证书,和终端应该大差不差,说办就办!马上打开浏览器去查!
  • 这不差不知道,一查吓一跳,原来证书无法验证是因为 Steam++ (即:Watt Toolkit ) 证书搞的鬼啊!
  • 在访问 Github 的路上,真的是成也 Steam++ 败也 Steam++(当然,主要原因是笔者自己太菜了【苦笑】)
    在这里插入图片描述
  • 我们可以看到,颁发者是 Steam Tools Certificate(即:Steam 工具证书)
  • 你可以这样理解:这个 github 证书并不是 “纯粹” 的 github 证书,所以我们的电脑无法验证这个证书
  • 知道了这一点,剩下的就好办了
  • 我们只需要把 Steam Tools Certificate 的证书告诉 git,让它在进行证书验证的时候,使用我们告诉它的进行解密
  • 最后 git 就会通过证书验证,从而成功的与 github 进行 https 访问
  • 好啦,过程就是这样,详细的操作教程请到下面的 方案二 进行查看

解决方案

终极方案:使用 ssh 方式进行与 github 连接


  • 下面的 方案一 和 方案二 本质上都是解决了 证书验证问题 ,最后都是通过 https 进行连接
  • 而 https 连接方式 早在 2021 年就已经被官方作出调整,内容大致如下:
自 2021 年 8 月起,Github 已取消对从 Git 命令行使用帐户密码的支持。
您仍然可以使用 HTTPS,但您需要设置一个 "个人访问" 令牌来代替您的密码。

  • 简单来说,如果你和笔者一样,是因为贪图 https 连接方式 的便捷性(直接输入账号密码就能连接,通俗易懂又方便)
  • 现在的话,请你打消你的念头,因为 https 连接方式 被官方做出调整后,它其实已经和 ssh 连接方式 没什么区别了
  • 甚至还不如直接使用 ssh 连接方式
  • 至此,如果你还想折腾 https 的连接方式,可自行上网搜索,或者看这篇文章:https://blog.youkuaiyun.com/qq_46941656/article/details/119737804


方案一:不进行证书验证

  • 通过无视风险的方式,强行禁止 ssl 证书验证。(在 git 中输入以下命令即可)
git config --global http.sslVerify false

方案二:进行证书验证

  • 通过为 git 导入对应的 ssl 证书,从而让 git 能够进行证书验证。
  1. 打开 Steam++,找到下面的页面,点击 “打开证书文件夹”
    在这里插入图片描述
  2. 在这个文件夹里面,复制 SteamTools.Certificate.cer 文件的路径
    在这里插入图片描述
  3. 打开 git,输入下面的命令,路径换成你自己的路径就行(这里需要注意,如果你是复制路径的话,请在粘贴路径后,手动将反斜杠 \ 改为下面的双斜杠 //,否则命令将不起作用)
git config --global http.sslCAInfo D://Software//WattToolkit//AppData//Plugins//Accelerator//SteamTools.Certificate.cer

关于方案一和方案二的一些问题

  • 在你使用 方案一 或者 方案二 之后,其实对于 fatal: unable to access ‘...‘ : SSL certificate problem: unable 这个问题就已经解决了
  • 当你使用 https 去连接 github 的时候,你可能会发现又报错了:
    remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. fatal: Authentication failed for '...'
  • 这真的是连环坑啊,笔者已经踩过了,并不希望大家再踩一遍,解决办法在上面的 终极方案 里面
  • 至此,分享结束,希望能帮到你!
Git SSL证书错误排查与解决方案 SSL证书验证是保障Git远程操作安全的核心机制,它通过加密通信和身份认证防止中间人攻击。其工作原理是客户端验证服务器证书的有效性,包括颁发机构、有效期和主机名匹配等要素。在开发运维中,正确处理Git SSL错误对保障代码安全传输至关重要,特别是在企业内网、代理环境等特殊场景下。当遇到SSL certificate problem或unable to get local issuer certificate等错误时,开发者需要掌握系统证书链检查、Git特定配置等排查方法,而非简单地禁用验证。本文针对自签名证 阅读详情

相关推荐

Git SSL 证书问题排查:3 种场景下的 `http.sslVerify` 配置与安全权衡

本文详细解析了Git SSL证书问题的三种常见场景及解决方案,包括临时禁用、按仓库禁用和全局禁用SSL验证,并提供了更安全的替代方案如添加自签名证书到信任链和使用SSH协议。文章还涵盖了企业环境下的特殊考量和实用诊断技巧,帮助开发者在安全性与便利性之间找到平衡。

weixin_30265103的博客 468

完美解决 git报错fatal: unable to access ‘https://github.com/.../.git‘:Recv failure Connection was reset

在使用git时,经常会碰到这个错误:fatal: unable to access 'https://github.com/.../.git':Recv failure Connection was reset。结合我个人最近的使用经验,提供两个方法,亲测有效。

m0_63230155的博客 9万+

企业内网Git自签名证书配置全攻略:解决SSL验证失败问题

在HTTPS通信中,SSL/TLS证书验证是保障数据传输安全的核心机制,它通过公钥基础设施(PKI)体系建立服务器身份的可信链。当企业使用自签名证书或私有CA时,标准客户端因无法在系统信任库中找到对应根证书,会触发安全警告中断连接。正确配置证书信任不仅能维持加密通信的防中间人攻击价值,还能确保持续集成、自动化部署等DevOps流程在内网环境顺畅运行。本文聚焦企业开发场景,详解如何通过配置操作系统证书存储与Git Credential Manager组件,系统化解决自签名证书导致的Git操作失败问题,涵盖Wi

weixin_30265103的博客 658

解决 github 无法访问 fatal: unable to access 、超时 Timed out

github拉取项目提示如下问题。

zzt135的博客 3503

Git SSL 验证失败排查:3 种场景下的 `http.sslVerify` 安全配置方案

本文详细解析了Git SSL验证失败的常见原因及三种安全配置方案,包括临时禁用验证、局部仓库设置和导入自签名证书的根治方法。针对企业内网和特殊开发环境,提供了从低到高不同安全等级的解决方案,帮助开发者在保证代码传输安全的前提下解决`http.sslVerify`相关问题。

weixin_34269583的博客 408

Win11 Git配置全指南:解决右键菜单、PATH、SSL证书与VS Code集成问题

Git是Windows 11开发者工作流的核心基础设施,其本质是基于分布式版本控制的协作协议,依赖命令行环境、环境变量路径(PATH)、HTTPS/SSH安全通道及IDE深度集成四大支柱。在Win11 22H2+版本中,因上下文菜单架构重构、系统/用户级PATH优先级冲突、OpenSSL与Windows原生证书存储脱节等底层机制变化,传统安装方式极易导致‘git命令不可用’‘右键菜单消失’‘HTTPS克隆SSL错误’等典型故障。本文聚焦Win11平台特有约束,详解如何通过schannel证书后端、注册表级右

dianzongfan5428的博客 401

git操作出错显示fatal: unable to access ‘https://github.com/xxxx/xxxx.git/‘: SSL certificate problem:

git操作通过https链接从Github克隆仓库到本地总报错(Windows11) 每次操作完都显示如下内容 Cloning into 'xxxx'... fatal: unable to access 'https://github.com/YOUR-USERNAME/YOUR-REPOSITORY.git/': SSL certificate problem: unable to get local issuer certificate

m0_47109389的博客 1万+

github连接不上的解决方案(持续更新)

本文主要介绍github连接不上的解决方案(持续更新),希望对使用github的同学们有所帮助。 文章目录 1. 背景 2. 解决方案

herosunly的博客 22万+

解决克隆、推送或拉取GitHub项目提示不能访问XXX项目,是由于SSL证书问题,无法获取本地颁发者证书问题

我们从GitHub上克隆、拉取或推送项目时,提示【fatal: unable to access 'https://github.com/kafeiweimei/WinFormClient.git/': SSL certificate problem: unable to get local issuer certificate】(翻译过来含义是:不能访问XXX项目,是由于SSL证书问题,无法获取本地颁发者证书)错误

提供C#相关开发 、云计算、运维测试、网络安全相关技术分享与服务,有意向可联系。 3114

Git Clone 出现 “fatal: unable to access ‘Failed to connect to github

在进行 Git Clone 操作时,有时会遇到 “fatal: unable to access ‘Failed to connect to github.com port : Timed out’” 错误。如果仍然无法解决问题,可能是由于其他网络配置或环境问题导致的,建议咨询你的网络管理员或尝试在其他网络环境中进行操作。检查代理设置:如果你使用代理服务器进行网络连接,确保你的 Git 配置中已正确设置代理。使用 Git Config 更改协议版本:尝试将 Git 的协议版本更改为较旧的版本。

BUG?不存在的! 1万+

STM32CubeMX平台F4系列固件下载核心要点

详解STM32CubeMX平台下F4系列单片机的固件包下载方法与常见问题,重点讲解stm32cubemx固件包下载流程及配置技巧,帮助开发者快速完成开发环境搭建。

weixin_42575505的博客 891

hexo init报错fatal: unable to access ……: SSL certificate problem,无法连接,SSL证书问题

hexo init问题解决

zrk3034197094的博客 815

用本地 Chrome + DeepSeek 实现浏览器自动化:browser-use 实战与踩坑记录

本文记录了使用本地Chrome浏览器结合DeepSeek API实现浏览器自动化的实战经验。作者通过browser-use项目连接本地Chrome(启动时需添加--remote-debugging-port=9222参数),并解决了DeepSeek API不支持response_format的问题,通过设置dont_force_structured_output=True和add_schema_to_system_prompt=True成功绕过。同时分享了任务描述需精准的重要性,避免Agent输出多余信息导

LY的博客 750

如何解决 fatal: unable to access ‘https://github.com/Geekwaner/vue3-.git/‘: SSL certificate problem: una

这个错误通常表示 SSL 证书有问题,导致无法访问 HTTPS 的远程仓库。在某些情况下,可能是因为系统中的根证书不完整或过期导致无法验证 SSL 证书。尝试更新系统的根证书。如果上述方法仍然无法解决问题,可能是其他网络或系统配置问题,请根据具体情况进行排查。如果你使用了网络代理,可能需要配置 Git 的代理设置,以便正确地访问远程仓库。这种方式会跳过 SSL 证书的验证,存在一定的风险,不建议在正式环境中使用。这种方式需要先将 SSH Key 添加到 GitHub 账户中。

weixin_47507298的博客 6535

决策树简介/PPT

最近给我们组新生讲了决策树的相关知识,以下是所做的PPT,参考了网络资源。

垃圾就应该待在垃圾桶里的博客 3795

国产HDMI2.0芯片GSV2011怎么选?手把手教你用它设计音视频采集卡(附FPGA/海思对接指南)

本文详细解析国产HDMI2.0芯片GSV2011在音视频采集卡设计中的应用,涵盖芯片选型、硬件设计要点及与FPGA/海思平台的对接指南。GSV2011凭借4K@60Hz支持、音频提取嵌入功能和高集成度,成为音视频设备的核心选择,助力开发者快速实现高性能采集卡设计。

weixin_30181209的博客 332

GitHub拉取代码报错:fatal: unable to access*SSL certificate problem: unable to get local issuer certificate

GitHub拉取代码时报错:Cloning into 'HiGame'...原因:一般是这是因为服务器的SSL证书没有经过第三方机构的签署,所以报错了。

m0_56818392的博客 317

DSSAT模型实战:从基础配置到气候情景模拟

本文详细介绍了DSSAT模型在农业模拟中的应用,从基础配置到气候情景模拟的全流程实战指南。通过土壤-植物-大气连续体的动态关系建模,DSSAT能精准预测作物产量,误差率低至8%。文章涵盖气象数据处理、土壤参数配置、管理措施调控等核心技巧,并提供了Python脚本和可视化方法,助力农业科研与决策。

weixin_29264201的博客 1012

【Git】git克隆github代码报错fatal: unable to access ‘克隆仓库地址/‘: SSL certificate problem:xxxxxx解决方案

这样就可以绕过 SSL 证书检查,成功克隆仓库。请注意,这种做法将不会验证服务器的真实性,因此建议仅在受信任的网络中使用。发生这样的错误是因为 Git 无法验证 GitHub 的 SSL 证书。这可能是由于本地的证书问题或网络问题导致的。--------此方法亲测有效,不知是否适合大家。(马赛克部分是自己所要克隆的代码地址)

m0_69892739的博客 1303

工业级Modbus ASCII实时监控系统(WinForms完整实现)

本文介绍了一个基于WinForms的工业级Modbus ASCII实时监控系统实现方案。该系统采用经典工控界面布局,包含串口配置、数据采集控制和实时数据显示三大区域。核心功能包括:串口通信参数设置、Modbus从站地址配置、寄存器数据采集、实时数据表格展示和趋势图绘制。系统通过ModbusAsciiClient类实现通信核心,采用定时器轮询机制采集数据,支持最多100个数据点的历史趋势显示。界面设计注重用户体验,配置区位于左侧,主显示区在右侧,底部为状态和日志区,符合工业控制系统的操作习惯。代码示例展示了窗

这里只有干货:从 Modbus 通信到 MES 对接,从 YOLO 训练到工控机部署,带你搞定工业软件开发全流程。 278

在Windows10上安装WSL2

WSL2是微软提供的Windows子系统,允许在Windows 10和11上运行Linux环境,提供更好的性能和兼容性。安装WSL2需要启用WSL功能、更新系统、安装WSL2内核,并设置为默认版本。之后,可以通过Microsoft Store安装Linux发行版,并使用WSL命令启动和管理它们。

howard2005的专栏 5940

git 下载报错:fatal: unable to access 'https://github.com/shenhai/phpGrace.git/': SSL certificate problem

问题描述:当我在使用 git 下载 phpGrace 时,出现报错信息: fatal: unable to access ‘https://github.com/shenhai/phpGrace.git/’: SSL certificate problem: unable to get local issuer certificate 输入命令: git clone https://githu...

studyphp123的博客 4176

uniapp开发小程序保存图片权限获取失败一直走fail?本地能保存,线上版就不行! 原来是这个问题!

通过这次经历,我发现线上版小程序和开发版、体验版的权限控制差异较大。如果你也遇到类似的问题,首先要检查是否已勾选“采集用户隐私”,并确保在提交审核时配置了隐私条款。这个设置非常关键,避免像我一样浪费了不少时间和版本。

代码简单说 Vue、JAVA、PHP、Node.js 熟练运用,接口、架构、性能全搞定。 1077

已解$ fatal: unable to access ‘https://github.com/hexojs/hexo-starter.git/‘: SSL certificate problem:

摘要:解决Git无法连接GitHub的SSL证书问题。当使用git clone时出现"SSL certificate problem"错误,通常是由于服务器证书未经过第三方机构签署。通过运行git config --global http.sslVerify "false"命令关闭SSL验证后,成功完成文件下载。这个方法简单有效地解决了Git操作中的SSL验证报错问题。

kilroy_7的博客 138

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

【git】fatal: unable to access ‘https://github.com/Epiphany6666/C-.git/‘: SSL certificate problem: una

这个问题是由于没有配置信任的服务器HTTPS验证。默认,被设为不信任任何CAs,就是说,它不信任任何服务器验证。

qq_39921135的博客 208

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

github ssl; cetificate problem

git clone出现SSL错误 Git  在学习git的时候,发现不能使用git clone从github.com下载,报了个ssl错误。   Cloning into cancan... error: SSL certificate problem, verify that the CA cert is OK. Details: error:14

vasal的专栏 562

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

上一篇: 快速回顾-CSS3
下一篇: 对 JavaScript 原型的理解
code_stream
博客等级 码龄4年 1238粉丝 169原创
评论 3
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值