CI/CD Pipeline end-to-end

Pipeline本质:可复现、可验证、可协作的自动化执行流 Pipeline是现代软件工程中实现持续集成与交付的核心范式,其本质并非简单脚本或工作流,而是由明确输入、确定性转换和结构化输出构成的原子化执行单元集合。它基于输入即契约、阶段即事务、输出即产物、元数据即生命线四大原则,保障执行的可复现性、可验证性与跨团队协作可靠性。在CI/CD、AI模型训练、IoT固件发布等场景中,Pipeline通过强隔离环境、结构化Artifact传递和深度可观测性,将‘人脑操作序列’转化为‘机器可解析、可审计、可回滚的指令图谱’。理解Pipeline与Script、Workflow 阅读详情

Assignment 1: CI/CD Pipeline

Introduction

During the up-coming assignments in this course you will build a pipeline that executes different

tasks, such as unit tests, integration tests, end-to-end tests, deployments etc. To achieve this you will

use the pipeline funcationallity in GitHub called GitHub Actions / Workflows, as presented in the

workshop session 1. In this assignment your task is to create a new respository in GitHub and

create a new pipeline (Workflow) that will package a small application into a Docker image and

then push it to a so called Container Registry. The goal is that everytime changes are made to any

code in the repository a new Docker image should be built and pushed to the Docker registry

automatically. Hence, as soon as the application is updated a new version is being published and is

ready to be used. You should also add some basic logging to the application.

What should be used?

• GitHub

• Docker

• Python

• Calculator application (provided by the teachers)

Assignment tasks

1. Add logging statements to the application

First, you will have to download the Calculator application which is published on the course site in

Canvas. Create a new empty directory and unzip the file there. Make sure you have all the needed

Python libraries (dependencies) for running the application. Install them by running:

pip install -r BE/requirements.txt

Then you should be able to run the application from a command shell by executing:

python BE/calculator.py --add 1 1

The application should print the result, that is: 1.0+1.0=2.0.

If this works, you’re ready to add some logging to the application. There is a logger.py file in the

calculator application that should be used for this purpose. In creates a logger instance with two

handlers, one that prints the logs to the terminal and one that sends the logs to a service in Azure

called Application Insights. You don’t have access to this service yourself, but it will be

demonstrated during a lecture, so you’ll see some of capabilities of that service.

Your task is to add logging-statements to important methods in calculator_helper.py file, that is,

subtract, multiply, divide, register_user, login & logout. The log messages should be informative

about what the method is doing, for example, what numbers are calculated, what user is created

1

and so forth.

At the top of the file there is a log_properties definition, replace the userId with your name in the

format firstname_lastname. This is used when storing the logs to Application Insights. An example

of how to use the logger instance would be:

self.logger.debug("some message", extra=self.log_properties)

2. Create a Dockerfile

Now it’s time to create a Dockerfile that builds a Docker image that contains the application. When a

container is started, based on the created image, it should calculate an answer depening on your

input. For example docker run your_image_name --add 1 1 should print the result 1.0+1.0=2.0.

Create your Dockerfile in the BE-subdirectory that contains the Python implemention.

To achieve this task you will have to use the folloing instructions in your Dockerfile: FROM, COPY, RUN &

ENTRYPOINT. Your Docker image should be based on the Docker Python image: python:3.12-slim. The

RUN instruction is to be used for installing the Python requirements on the image that are needed by

the calculator application. The needed packages are defined in the requirements.txt-file. Use the

Python package manager pip to install the packages.

Information about Dockerfile and the four commands you should use can be found here:

https://docs.docker.com/engine/reference/builder/

You don’t need to read through and understand all the details! Just find the information needed to

solve the task…

When you have created a Dockerfile you can build an image by using the Docker build command.

Run the following command while standing in the directory containing the Dockerfile: docker build

-t your_name-calculator .

You should then be able to see your newly created image by executing the command: docker images.

Figure out how to start a container from your created image that calculates and prints the sum of

1+1. Use the docker run command.

NOTE

Use your real name as a prefix when giving names to your images, for example:

jens_johansson-calculator. Then the teachers can see who has created what image.

The images will in later steps be pushed to a container registry. Images who cannot

be 'connected' to a student by name will be removed from the registry…

3. Publishing an image to a Docker container registry

Now you should push the Docker image to a container registry in the cloud, which means the image

can be accessed from anywhere, not just your own computer. For this course we have created a

container registry in System Verification’s Azure (Microsoft cloud) account. The name of the

container registry is judevops.azurecr.io. Login to the registry using the docker login command.

The username and password are available in Canvas.

2

To which registry Docker pushes (uploads) an image is controlled by the name of the image. If you

want to push a Docker image called your_name-calculator to the judevops.azurecr.io registry it

should be named as judevops.azurecr.io/your_name-calculator. After you have logged in to the

registery, name your image accordingly using the docker tag command and then push it to the

registry using the docker push command.

You should now be able to pull (download) the image from the Docker registry using the docker

pull command, i.e. docker pull judevops.azurecr.io/your_name-calculator and then run it using the

command: docker run judevops.azurecr.io/your_name-calculator.

4. Create a new GitHub repository and a pipeline

Sign in to your GitHub account and create a new repository. GitHub Classroom link is available in

Canvas. Add the files from previous steps, i.e. the Dockerfile and calculator-directory with Python

files to the repository.

Navigate to GitHub Actions and select configure for a new Simple workflow. Change the filename

suggestion from blank.yml to calculator_pipeline.yml and choose Start commit & Commit new file.

GitHub have now created a pipeline defintion for you in your-repository name/.github/workflows/calculator_pipeline.yml.

In GitHub pipelines are refered to as Workflows. The created pipeline template includes a job called

build and that job contains two steps that prints some text in the console. As soon as the

calculator_pipeline.yml-file was commited to the repository it was also executed.

Navigate in GitHub and find the pipeline (workflow) and find the results of the executed job and

steps. You should be able to find the output of the steps executed, i.e. the Hello, world! message.

5. Build and push your Docker image in the pipeline

The pipeline should be executed on all changes on the main branch in the repository, this setting

should be there by default when you created the workflow template. You should update the

pipeline to contain 1 job with 3 different steps that performs the following:

• Checkout the code from the repository.

• Login to container registry (judevops.azurecr.io) with the credentials.

• Create a new Docker image based in the files in the repository and push it to the registry.

(This can be done using the same shell commands used in previous steps, that is, docker build &

docker push with correct arguments.)

Make sure to give your different steps descriptive names.

Information and examples of how Workflows are implemented can be found here:

There is a special GitHub Action that should be used to signin to the Azure Container Registry. 3

NOTE

You should avoid adding the credentials to the container registry directly in the

yaml/workflow-file - even if it’s possible! You should use GitHub Secrets to store the

username and password and refer to them within the pipeline according to the

example.

6. Verify your solution

Do a small change to the files in the code repository that changes the output when you run the

container. For example you can update the statements that prints the results in the calculator.py

-file (look at line 46 and onwards…), so that it prints something slightly different.

When the change is done, push the change to your GitHub repository. Verify that the workflow was

executed automatically and succeeded. Then verify that if you execute a docker pull, to download

the image from the Docker registry to your local computer, and then execute docker run, you see

the updated output from the container.  

Now you have your first version of a Continuous Delivery pipeline!

JMeter与CI/CD集成实战:自动化性能测试与质量门禁 性能测试是软件质量保障的关键环节,其核心原理是通过模拟真实用户负载,评估系统在高并发下的响应能力、稳定性和资源消耗。在持续集成/持续部署(CI/CD)的现代研发流程中,将性能测试自动化集成,能够实现快速反馈和早期风险暴露,具有极高的技术价值。通过将JMeter以无头模式运行,并结合Jenkins等CI/CD工具,可以构建自动化的性能测试流水线。这一实践广泛应用于微服务、API接口和Web应用等场景,确保每次代码变更都能触发标准化的性能回归测试。本文聚焦于JMeter与CI/CD的深度集成,详细介绍了如何通过 阅读详情

相关推荐

Unity游戏多渠道打包自动化:基于Jenkins与Fastlane的CI/CD实战方案

持续集成与持续部署(CI/CD)是现代软件工程的核心实践,旨在通过自动化构建、测试和部署流程,提升开发效率与软件质量。其核心原理在于将代码变更自动触发一系列标准化操作,减少人工干预,实现快速、可靠的交付。在游戏开发领域,这一技术价值尤为凸显,能够有效应对多平台、多版本、高频次迭代的复杂需求。特别是在Unity移动游戏开发中,面对iOS、Android及众多国内渠道(如华为、小米、TapTap)的SDK集成、证书管理和商店上传等重复性工作,手动处理极易出错且耗时费力。应用自动化流水线,可以将这些繁琐环节串联,

weixin_30487201的博客 372

cicd-end-to-end Jenkinsfile详解:打造高效Django自动化测试与部署

在现代软件开发中,持续集成和持续部署(CI/CD)已成为提升开发效率的关键实践。本文将深入解析cicd-end-to-end项目中的Jenkinsfile配置,带你快速掌握如何为Django应用构建完整的自动化测试与部署流程,实现从代码提交到应用上线的全流程自动化。 ## 为什么选择Jenkins实现Django项目的CI/CD? Jenkins作为业界领先的CI/CD工具,具备强大的灵活性和

gitblog_00819的博客 634

Jenkins+Maven+Git自动化部署实战:从零搭建CI/CD流水线

持续集成与持续部署(CI/CD)是现代软件工程的核心实践,旨在通过自动化流程提升软件交付效率与质量。其核心原理在于将代码提交、构建、测试、部署等环节串联为标准化流水线,减少人工干预带来的错误与延迟。在Java技术栈中,Maven作为项目构建与依赖管理的标准工具,与版本控制系统Git及自动化服务器Jenkins的结合,构成了企业级CI/CD的典型技术方案。这种组合能够实现从代码变更到服务上线的全流程自动化,显著提升开发团队的迭代速度与交付可靠性。本文聚焦于Jenkins、Maven与Git的集成实战,详细解析

weixin_30875157的博客 479

Jenkins CI/CD pipeline实战教程:DevOps Learn By Doing带你构建Java应用自动化流程

DevOps Learn By Doing是一个社区驱动的免费DevOps实践平台,通过动手实验和真实项目帮助开发者掌握实用技能。本文将以Jenkins CI/CD pipeline为核心,带你从零开始构建Java应用的自动化流程,让你在实践中掌握持续集成与持续部署的关键技术。 ## 为什么选择Jenkins构建Java应用自动化流程? 在DevOps领域,CI/CD(持续集成/持续部署)是提

gitblog_00252的博客 847

Jenkins自动化部署实战:从零搭建稳定CI/CD流水线

持续集成与持续部署(CI/CD)是现代软件开发的核心实践,旨在通过自动化流程提升软件交付效率与质量。其核心原理在于将代码提交、构建、测试、部署等环节串联为自动化流水线,减少人工干预,实现快速反馈。在技术实现上,Jenkins作为广泛使用的开源自动化服务器,扮演了调度中心的角色,它通过集成Maven、Git等工具,实现对Java项目的自动化构建与部署。对于开发团队而言,搭建一套稳定的自动化部署系统,能够显著提升开发效率,确保构建环境的一致性,并快速定位问题。本文聚焦于Jenkins、Maven、Git三大核心

weixin_30875157的博客 332

PyTorch GPU版本安装避坑指南:解决RuntimeError: No CUDA GPUs are available报错

本文详细解析了PyTorch GPU版本安装过程中常见的`RuntimeError: No CUDA GPUs are available`报错问题,从硬件驱动检查、CUDA Toolkit与cuDNN安装到PyTorch GPU版本的正确配置,提供了全面的避坑指南和实战验证方法,帮助开发者高效搭建深度学习开发环境。

r2s3t4的博客 301

如何给极狐GitLab 配置 webhook,自动触发 Pipeline?

本文根据工作中的痛点来举例介绍如何使用极狐 GitLab,让你的日常工作更高效。还在只使用极狐 GitLab 存放代码?那你就 OUT 啦。赶紧看看这篇文章,让你的日常工作更高效。

GitLab 中国发行版 1398

TM1650数码管驱动芯片

简介 TM1650是一款国产4位共阴数码管驱动芯片,它还带有矩阵按键扫码功能。它的基本参数如下: 工作电压:3~5V 数码管驱动模式:8段x4位共阴数码管 矩阵按键驱动模式:7x4矩阵按键,不支持组合键 通信接口:类IIC,使用了IIC相同的时序,但没有完全遵守IIC的协议,不带从机地址 引脚定义 SCL:串行通信时钟线 SDA:串行通信数据线 做数码管驱动使用时 DIGx:数码管的位选引脚,灌电流驱动,最大可吸收150mA电流 A~DP:数码管的段驱动引脚,拉电流驱动,最大可输出25m

luliplus的博客 4万+

OpenShift 4 - 在 CI/CD Pipeline 中创建 KubeVirt 容器虚拟机 - 方法3

说明:本文已经在支持 OpenShift 4.12 的 OpenShift 环境中验证。

多恩斯基的博客 878

FPGA优质开源项目 – UDP万兆光纤以太网通信

本文开源一个FPGA项目:UDP万兆光通信。文章末尾有该工程源码获取方式,有需要的小伙伴可以点赞、分享支持一下~

cjx_csdn的博客 4772

中山大学_数据科学与计算机_预推免

前言 2019 年 9 月中旬是中山大学预推免时间,本人没能进到夏令营,但是最后在预推免上岸也算不幸中的万幸。 记忆不一定准确,但希望能帮到他人。 想看 流程 的可以直接看总结,正文部分有本人心路历程。 预推免 中山大学的预推免大致可以分为 报道,机试,面试 三大部分,而且尤其是面试,所有人加起来总时长 3 天,幸运的是,本人被安排在第一天的下午第一场,上午就是机试,报道,机试,面试,无缝衔接。 ...

一把健 5211

jenkins 的 pipeline 脚本中进行 nodejs 构建

一、配置NodeJS环境 Jenkins》系统管理》全局工具配置》NodeJS 其中安装目录是你从nodejs官网下载的安装包(例如node-v14.5.0-linux-x64.tar.gz)解压后的目录。 记下别名,需要在pipeline脚本中使用。 二、编写 pipeline 脚本 如下为脚本片段 // 此处省略代码... def yarn_home = "/var/yarn_home"; // 此处省略代码...

小单的博客专栏 4335

无人驾驶感知融合——横摆角速度的多源估计算法解析

本文深入解析了无人驾驶感知融合中的横摆角速度多源估计算法,详细介绍了轮速差法、侧向加速度法、曲率法和惯性传感器直读法四种计算方法及其优缺点。通过卡尔曼滤波实战案例,展示了多源融合算法在提升精度和稳定性方面的显著优势,并探讨了工程实践中的时间对齐、坐标系统一等关键问题。

weixin_31458015的博客 463

Pipeline本质是协作契约:从‘Here’s the Pipeline:‘看工程化落地

Pipeline(流水线)是现代软件交付与数据工程中的核心抽象,其本质并非工具链或自动化脚本,而是定义输入、处理与输出三方责任边界的可执行契约。它根植于CI/CD实践,延伸至MLOps、DataOps等场景,承载着环境一致性、步骤可复现、结果可验证的技术价值。在金融、医疗、工业等强合规领域,pipeline更是跨角色协同的信任锚点——运维据此核验权限,算法据此确认特征路径,产品据此评估需求影响。本文聚焦中高级工程师真实战场,解析如何将模糊的‘Here’s the Pipeline:’转化为具备哈希输入、死亡

weixin_30684743的博客 445

2021-10-29【微生物】丨基于qiime2工具16S/ITS分析全套流程(上)

目录摘要工具与方法使用命令结果展示总结二级目录三级目录 摘要 前两个月项目特别多,最近终于有机会闲下来写点文章,把之前搭建的流程梳理一遍。前同事分析16S/ITS使用的qiime1,我接手后感觉不太适应,希望能够使用新版本来搭建,于是花了几天时间重新搭了这个流程, 工具与方法 使用工具:qiime2 使用版本:qiime2-2021.4 参考文档:https://docs.qiime2.org/2021.4/(最新版本2021.8) 使用命令 在这里插入代码片 结果展示 总结 二级目录 三级目录 ...

1万+

一个严谨的STM32串口DMA发送&接收(1.5Mbps波特率)机制

本文描述串口DMA收/发机制设计,及STM32串口DMA收/发实现。

只要思想不滑坡,想法总比问题多。 5万+

腾讯云 CVM + Docker + Jenkins + GitLab CI/CD 全流程指南(python、flask实现简单计算器)

本文介绍了基于腾讯云CVM搭建Docker+Jenkins+GitLab的CI/CD全流程指南。主要内容包括:1)创建腾讯云CVM实例并配置安全组;2)安装Docker环境;3)通过Docker部署Jenkins服务;4)初始化Jenkins并进行插件配置;5)在GitLab创建项目并推送代码。该方案适用于个人学习CI/CD流程,总耗时约2-3小时,采用按量计费方式成本约0.4-0.5元/小时。文中提供了详细的架构图、配置参数和分步操作指令,重点说明了关键组件的部署方法和注意事项,如安全组端口配置

叶落秋白的博客 1300

把 SAP BTP Destination 写进 MTA:一段 com.sap.application.content 配置背后的部署编排学

MTA内容模块解析:SAP BTP中的声明式部署机制 本文详细解析了mta.yaml中com.sap.application.content模块在SAP BTP云环境中的作用。该模块通过声明式配置实现内容投递,无需编译或部署代码。核心功能包括: Destination创建:通过content-target:true标识将配置投递到Destination服务 HTML5应用部署:将静态资源投递到HTML5 Application Repository 安全集成:配置XSUAA服务实现OAuth2用户令牌交换

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 166

解锁极狐GitLab 自动化功能:Webhook 触发 Pipeline 与计划流水线

让你的日常工作更高效!

GitLab 中国发行版 2696

深度学习工具包 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")

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

内容出海工具链搭建实战:从0到CI/CD自动化

文章摘要 本文介绍了一个自动化内容出海翻译配音产线的搭建方案,通过Python+Docker+GitHub Actions实现从中文视频到多语言版本的自动转换和发布。系统架构包含Whisper语音识别、DeepL/GPT翻译、ElevenLabs/Cutrix配音、FFmpeg合成和YouTube上传等核心模块。文章详细提供了环境配置、API准备、项目目录结构说明,并展示了核心代码实现,包括配置管理文件和主流程控制逻辑。该方案支持上传中文视频后自动生成英语/日语/西班牙语版本并发布到YouTube。

qq_36656650的博客 636

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

CI/CD集成终极指南:将minitest-reporters与Jenkins、GitHub Actions等工具结合

在现代化的Ruby测试生态系统中,**minitest-reporters** 是一个功能强大的测试报告生成工具,它能够创建可自定义的Minitest输出格式。对于需要持续集成和持续部署的团队来说,将minitest-reporters与CI/CD工具集成是提升开发效率的关键步骤。本文将为您提供完整的CI/CD集成指南,帮助您将minitest-reporters与Jenkins、GitHub A

gitblog_00095的博客 726

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

Gitlab 中 CI/CD 自动化部署与使用

「点击图片查看近两年的爆款好文」大家好,我是民工哥。今天给大家介绍一下Gitlab中CI/CD的自动化部署安装与使用。1. docker方式安装安装...

民工哥的博客 2081

MiniCPM-V-4.7-35B-A3B-GPTQ 有多强?MoE 多模态大模型性能-效率帕累托前沿全解析

MiniCPM-V-4.7-35B-A3B-GPTQ 是 MiniCPM-V 系列首个 MoE(混合专家)多模态大模型的 GPTQ 量化版本,主打**端侧流畅推理**与**性能-效率帕累托前沿**。它用更少的激活参数跑出更大的总参数能力,让手机、平板也能跑 35B 级多模态模型。本文带你读懂它的核心成绩、高效架构与量化配方。 > 📌 一句话定位:它是**第一个能在端侧"无损、流畅"运行的开源

gitblog_00384的博客 788

DoTenX API 使用指南:通过公开 Endpoint 以编程方式触发 Pipeline 的完整清单

DoTenX 是一款 No-code / Low-code 一体化平台,可用于搭建网站、Web 应用、API 和自动化流程。本文带你快速掌握 DoTenX API 中最实用的能力:如何通过**公开 Endpoint** 以编程方式(一行 curl 命令)触发 Pipeline,并附全套相关接口清单与排错指南,让你几分钟内就把自动化接入到自己的系统里。 [![DoTenX 自动化与 API 能力概

gitblog_00752的博客 805

Jenkins中pipeline后台进程起不来的问题

在普通的shell环境中,nohup,并且&amp; 某个程序后,会抛到后台执行,在退出当前shell环境后,程序依然可以执行。但是在Jenkins的pipeline中,通过nohup,且使用&amp;之后,step结束后,执行的程序还是会退出,导致程序起不来。 此前说过关于直接配置 job 这种问题的处理方法,链接:http://blog.youkuaiyun.com/catoop/article/det...

小单的博客专栏 4960

Jira与GitLab CI/CD深度集成实践与优化

DevOps工具链集成是现代软件工程的核心实践,其中需求管理工具与CI/CD系统的无缝衔接尤为关键。通过Webhook和API实现Jira与GitLab的双向集成,可以构建从需求到部署的完整追踪链路。这种集成不仅解决了传统研发流程中的信息孤岛问题,还能实现基于Jira状态自动触发构建、部署环境动态注入等高级场景。在技术实现上,需要关注事件驱动架构设计、API安全认证、以及性能优化策略如Redis事件去重等。典型应用场景包括多环境部署联动、智能卡点机制等,最终实现部署周期缩短80%以上的效果。

weixin_30323631的博客 376
上一篇: CIS – General Lecture
下一篇: 125.811 Advanced Risk Analytics
wx____codehelp
博客等级 码龄2年 538粉丝 99原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值