9.png malformed,No marked region found along edge,Found along top edge 问题解决

Android高级资源 9-Patch 介绍 Drawable 资源是 Android 应用中使用最广泛、灵活的资源。它不仅可以直接使用图片作为资源,而且可以使用 XML 文件作为资源,只要一个 XML 文件可以被系统编译成 Drawable 子类的对象,那么该 XML 文件就可以作为 Drawable 资源。 Drawable资源保存在res\drawable目录中,实际上,为了适应不同屏幕分辨率,通常情况下将其保存在res\drawable-mdpi、res\drawable-hdpi、res\drawab... 阅读详情


9.png malformed.或 No marked region found along edge.以及 Found along top edge 的问题解决。


主要是因为该图片没有四周的定位像素。

有两种解决方法:1,,讲其后缀名改为普通名字。2,将其做成点九图片。

详细内容请看:

http://blog.sina.com.cn/s/blog_6714fba7010116rr.html

http://blog.sina.com.cn/s/blog_6714fba7010116rz.html


1.   9-patch介绍    

9-patch绘画的是一个可以伸缩的位图图像,Android会自动调整大小来容纳显示的内容。一个例子就是NinePatch为背景,使用标准的Android按钮,按钮必须伸缩来容纳长度变化的字符。

       9-patch是一个标准的PNG图像,它包括额外的1个像素的边界,你必须保存它后缀为.9.png,并且保存到工程的res/drawable目录中。如果你是从APK解压后得到的*.9.png文件,注意它是已将周围的空白像素去掉的,在使用时必须再加上,不然eclipse会报错。

2.   使用9-patch流程说明

 

1.      (1)From a terminal, launch the draw9patch application from your SDK /tools directory.

2.      (2)Drag your PNG image into the Draw 9-patch window (or File > Open 9-patch... to locate the file). Your workspace will now open.The left pane is your drawing area, in which you can edit the lines for the stretchable patches and content area. The right pane is the preview area, where you can preview your graphic when stretched.

3.      (3)Click within the 1-pixel perimeter to draw the lines that define the stretchable patches and (optional) content area. Right-click (or hold Shift and click, on Mac) to erase previously drawn lines.

4.      (4)When done, select File > Save 9-patch...

Your image will be saved with the .9.png file name.

 

Note: A normal PNG file (*.png) will be loaded with an empty one-pixel border added around the image, in which you can draw the stretchable patches and content area. A previously saved 9-patch file (*.9.png) will be loaded as-is, with no drawing area added, because it already exists.

Android  9-patch - 猫君 - 猫群博客
 

Optional controls include:

·         (1)Zoom: Adjust the zoom level of the graphic in the drawing area.

·         (2)Patch scale: Adjust the scale of the images in the preview area.

·         (3)Show lock: Visualize the non-drawable area of the graphic on mouse-over.

·         (4)Show patches: Preview the stretchable patches in the drawing area (pink is a stretchable patch).

·         (5)Show content: Highlight the content area in the preview images (purple is the area in which content is allowed).

·         (6)Show bad patches: Adds a red border around patch areas that may produce artifacts in the graphic when stretched. Visual coherence of your stretched image will be maintained if you eliminate all bad patches.

 

3.   使用9-patch问题及解决方法

1. draw9patch.bat不能运行的一个解决方案,下载jar包,地址是:
http://netmite.com/android/mydroid/1.6/prebuilt/common/swing-worker/swing-worker-1.1.jar
下好的jar包放到:$ANDROID_SDK/tools/lib 文件里,再运行就可以。

 

2.Android项目中使用Nine Patch资源,时候可能出现比如ERROR: 9-patch image android123.9.png malformed.或 No marked region found along edge.以及 Found along top edge.的错误主要是因为该图片没有四周的定位像素


再分享一个写得相当赞的关于9-patch的博文 :

http://blog.youkuaiyun.com/xiaominghimi/archive/2010/12/30/6107837.aspx


Android语言基础教程(145)Android Drawable资源范例之使用9-Patch图片实现不失真按钮背景:Android按钮变形记:9-Patch图片让你的背景自适应又不失真! 还在为Android按钮背景拉伸失真而头疼吗?这篇教程将带你玩转9-Patch图片,用一种简单粗暴的方式解决背景适配问题。只需一张特殊处理的PNG图片,让你的按钮在任何内容大小下都保持完美形态,再也不用担心设计师找你麻烦了! 阅读详情

相关推荐

Android制作9-Patch/.9图片

好一阵子没有写博客了,因为最近都比较忙~~ 总结一下制作.9图片,包括趟过的坑。希望能帮到在坑里的同学。 操作环境,AndroidStudio3.0, macOS 10.13.5 以聊天对话的气泡背景为例。 这是原始图。 修改后缀名为 .9.png 当然,资源文件不能以数字开头。 拷贝到项目中。 双击打开,在右侧预览。 默认会在9-Patch分页。如果...

qq_23057645的博客 894

No marked region found along edge.Found along top edge.错误

如果在Android项目中使用Nine Patch资源,时候可能出现比如ERROR: 9-patch image android123.9.png malformed.或 No marked region found along edge.以及 Found along top edge.的错误主要是因为该图片没有四周的定位像素。 有两种解决方法:1,,讲其后缀名改为普通名字。

Dream It Possible 1万+

Android 实现背景图片不被拉伸的效果 9-patch图片 .9图

今天碰到个需求,要求不同手机分辨率背景照片不能被拉伸,除了调用系统方法计算当前屏幕大小这个方法外还有一个就是9-patch图片,可以实现除了icon剩下的部位被缩放。方法:资源文件右击找到9-patch,转为XXX.9.png照片然后打开图片,进行编辑;精髓就是这张图;.9图原理,黑色横线作用顶部横线代表水平延伸的时候,其他位置不变,此处横线做水平延伸的部分。底部横线代表水平延伸的时候,内容在水平方向的显示区域。左方竖线代表竖直延伸的时候,其他位置不变,此处横线做竖直延伸部分。

with sb to do something 716

Android studio图片ERROR: 9-patch image xx .9.png malformed

Android studio 图片错误 9-patch image error in Android ERROR: 9-patch image xx .9.png malformed 1) 异常: AAPT err(1118615418): ERROR: 9-patch image icon_item_bottom_line.9.png malformed No marked region found along edge. Found along left edge

提升心智 2万+

Android 9-patch 图像编辑工具完全指南

本文还有配套的精品资源,点击获取 简介:在Android开发中,9-png格式是用于创建可伸缩的图片资源的特殊格式。这款针对Android开发者的9-png修改工具支持中文界面,简化了图像的编辑过程,允许开发者指定图像的拉伸和非拉伸区域,以适应不同屏幕尺寸。工具包括主程序文件、安装程序、执行文件和应用文件,使开发者能够调整图像拉伸区域、预览效果、保存为9-png格式,并提高...

weixin_36299472的博客 1877

掌握Android UI中的Nine-Patch图像处理技术

在Android开发中,Nine-Patch图像是一种特殊的PNG图片格式,它允许图片在不同的屏幕尺寸和分辨率下自动调整大小。这种图像的扩展性使它们特别适合用于UI元素,如按钮、进度条和背景等,这些元素需要适应多种屏幕尺寸而不会产生扭曲或拉伸效果。点9图利用图像处理技术,允许图像的四个角落不被拉伸,四个边可以按需拉伸,而中心则可自由拉伸或不拉伸。这种特性使点9图非常适合用来创建可适配不同屏幕尺寸的UI元素,如按钮、背景等。点9图通常具有一下特点:四个角落。

weixin_29092787的博客 938

简述Android 9-Patch

什么是9-Patch 安卓开发里面的一种特殊的图片,这种格式的图片在 android 环境下具有自适应调节大小的能力,文件名以.9.png结尾。 如何制作 9-Patch 文件 创建: 首先,将需要制作成 9-patch 的图片放进项目中 点击该图片,右键调出菜单栏,选中 Create 9-Patch file 指定9-Patch文件存储位置(建议重新编辑下名称,后面引用才不会冲突) 点击确定后,我们就在目录下得到了一张.9图了,但是,我们还需要对图片进行编辑,这样图片的拉伸效果

chuyouyinghe的专栏 975

draw9patch.zip

中文版draw9patch,制作.9图片十分方便呢!解决 Android 开发 ERROR: 9-patch image

AAPT ERROR:9-patch iamge xxx.9.png malformed, No marked region found along edge.

编译项目时 报如下错误: 查看详细的日志,错误如下: AAPT ERROR:9-patch iamge xxx.9.png malformed No marked region found along edge. 错误原因: AAPT 工具无法确认 9-patch 图片中的拉伸区域 。 也就是说9-patch图片 横向拉伸区域和纵向拉伸区域必须都要有才行。 而我当时图片只标记了纵向拉伸区域 ...

cjm2484836553的博客 1624

【AI开源】Understand-Anything 完整使用教程(2026最新版)

Understand-Anything是一款基于交互式知识图谱的AI学习与开发平台,能够将代码库转化为可视化知识结构,支持语义搜索、上下文问答和全流程开发。核心功能包括代码知识图谱化、AI辅助学习和多编码代理集成。支持TypeScript/JavaScript、Python等多种语言,要求Node.js 20+和16GB以上内存。提供NPM、Docker和源码三种安装方式,支持增量更新和团队知识共享。与同类产品相比,在交互式图谱、语义搜索和AI集成方面更具优势。适用于代码学习、大型项目维护和团队协作等场景。

与时俱进,开放共享 7216

STM32G0实战:手把手教你用国产GD25Q16 Flash存储传感器数据(附完整驱动)

本文详细介绍了如何使用国产GD25Q16 Flash芯片与STM32G0系列MCU实现传感器数据存储的完整方案。从SPI接口配置、驱动层实现到存储系统架构设计,提供了实战代码和优化策略,帮助开发者快速构建高性价比的物联网数据存储系统。

weixin_30733003的博客 106

Android之9-Patch图

9-Patch的创建、制作和使用

jignjingfan的博客 1796

别再瞎调了!手把手教你搞定STM32步进电机PID速度环(附完整代码与比例系数详解)

本文详细解析了STM32步进电机PID速度环的完整实现过程,从算法输出到脉冲频率的转换链路,重点讲解了比例系数的确定方法及系统标定实验。通过完整的代码示例和调试技巧,帮助工程师解决实际应用中的常见问题,提升步进电机控制精度与稳定性。

weixin_28729331的博客 214

android studio 9.png,Android studio图片ERROR: 9-patch image xx .9.png malformed

Android studio 图片错误 9-patch image error in AndroidERROR: 9-patch image xx .9.png malformed1) 异常:AAPT err(1118615418): ERROR: 9-patch image icon_item_bottom_line.9.pngmalformedNo marked region found ...

weixin_29505469的博客 223

Dify知识库文档批量下载神器:一键导出所有文件到本地

在使用Dify进行知识库管理的过程中,我们经常遇到一个实际问题:如何将已上传到知识库中的文档批量下载到本地?目前Dify的管理界面虽然功能强大,但暂时没有提供直接的UI界面来批量导出或下载知识库内的文档。这意味着如果我们需要将知识库中的文件备份到本地或进行离线处理,只能通过API接口来实现。本文将详细介绍如何利用Dify的REST API构建一个完整的知识库文档下载解决方案,这也是目前实现知识库文件批量下载到本地的唯一可行路径。🎉进入大模型应用与实战专栏 | 🚀查看更多专栏内容首先,我们需要在Dify的

羊城迷鹿的博客 3473

Node-RED系列(二二):使用dashboard搭配echarts制作漂亮的面板

在node-red中dashboard 是一个很常用的模块,其中它有一个chart节点可以用来制作一些图表,比如柱状图,折线图,饼图,但其中的图表并不是很美观,而且可配置项非常的少。 于是就有很多小伙伴找我做一套比较好看的图表面板,在对比了一下几个图表库,我选中了echarts。 不仅美观大方,而且非常容易集成,配置。下面先来看一下我做的效果。这里是直接做了四个折线图,第一个折线图有动态效果,第二个折线图是一个多线条的折线图,第三个折线图是在一个图例显示两个折线图。第二第三都可以用于数据对比。 第四个折线

知无涯 1万+

Android 9patch 实例详细介绍

网上看了许多 讲解 9妹图的 博客,感觉有些地方跟自己的理解有点出入,特地拿来研究一翻,并记录心得,

晓游的专栏 1031

第二章:创建交互式地图

那么您应该已经有了一个安装了这些包的 conda 环境。否则,您需要创建一个新的 conda 环境并使用以下命令安装。

韩天放 4216

Android系统开发(十九):无缝拉伸的艺术——9-Patch 可绘制对象详解

这些案例展示了 9-Patch 在不同场景中的实际应用。通过灵活定义拉伸和内容区域,9-Patch 帮助开发者轻松实现高质量的 UI 适配效果。在项目中,这种技术能显著提升界面美观度和用户体验,堪称 UI 开发的必备技能!

刘 争 1301

YOLOv11缝合改进Conv | SAConv在YOLOv11中的应用可切换空洞卷积与性能提升(附代码)

在本篇文章中,我们将深入探讨如何通过引入**SAConv**(Switchable Atrous Convolution,可切换空洞卷积)来优化YOLOv11网络结构,特别是在卷积操作方面的创新。我们会解析SAConv的核心原理和架构设计。

一键难忘的博客 953

C语言试题三之计算并输出 s=1+(1+2^(0.5))+(1+2^(0.5)+3^(0.5))+…+(1+2^(0.5)+3^(0.5)+…+n^(0.5))

1 、题目 计算并输出 s=1+(1+2^(0.5))+(1+2^(0.5)+3^(0.5))+…+(1+2^(0.5)+3^(0.5)+…+n^(0.5)) 2、部分函数说明 C 库函数 double pow(double x, double y) 返回 x 的 y 次幂。 3、源代码实现 #include <stdio.h> #include <...

码莎拉蒂 4609

[Android]制作9-Patch图片

把png图片拖到drawable中,对着png图片右击->Create 9-Patch file->点击OK(注意.9.png图片的命名要和png图片不一样)在图片的四个边框拖动白线来绘制黑点,在上边框和左边框绘制的部分表示当图片需要拉伸时就拉伸黑点标记的区域,在下边框和右边框绘制的部分表示内容允许被放置的区域。在drawable就会生成以.9.png为后缀的图片,点击这个图片。.9.png图片是一种特殊的png图片,它在放大显示时不会失真。

weixin_63357306的博客 893

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

【Android】9-patch图片以及例子说明

1、何为9-patch? NinePatch图片以*.9.png结尾,和普通图片(png图片)的区别是四周多了一个边框(如下图所示):   采用NinePatch图片做背景,可使背景随着内容的拉伸(缩小)而拉伸(缩小)。---在Android中,对于不同的分辨率,图片显示就不会变形了   上下左右的四条黑线表示如下: 1、左边和上边的交叉区表示可扩展区域;右边和下边的交叉区表示文字显示...

weixin_34059951的博客 248

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

深度学习工具包 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&#39;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(&#39;DeepLearnToolbox&#39;));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(&#39;state&#39;,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&#39;); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand(&#39;state&#39;,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 = &#39;sigm&#39;;%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, &#39;Too big error&#39;);```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(&#39;state&#39;,0)sae = saesetup([784 100]);sae.ae{1}.activation_function = &#39;sigm&#39;;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)&#39;)% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;;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, &#39;Too big error&#39;);```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x&#39;,28,28,60000))/255;test_x = double(reshape(test_x&#39;,28,28,10000))/255;train_y = double(train_y&#39;);test_y = double(test_y&#39;);%% 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&#39;ll get around 1.2% errorrand(&#39;state&#39;,0)cnn.layers = { struct(&#39;type&#39;, &#39;i&#39;) %input layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 6, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %sub sampling layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 12, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 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, &#39;Too big error&#39;);```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(&#39;state&#39;,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, &#39;Too big error&#39;);%% ex2 neural net with L2 weight decayrand(&#39;state&#39;,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, &#39;Too big error&#39;);%% ex3 neural net with dropoutrand(&#39;state&#39;,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, &#39;Too big error&#39;);%% ex4 neural net with sigmoid activation functionrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;; % 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, &#39;Too big error&#39;);%% ex5 plotting functionalityrand(&#39;state&#39;,0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = &#39;softmax&#39;; % 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, &#39;Too big error&#39;);%% 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(&#39;state&#39;,0)nn = nnsetup([784 20 10]); nn.output = &#39;softmax&#39;; % 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, &#39;Too big error&#39;);```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

上一篇: Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead的解决办法
下一篇: android的apk之反编译
superjunjin
博客等级 码龄17年 600粉丝 133原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值