日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人工智能 > 循环神经网络 >内容正文

循环神经网络

matlab 求解进度,报告测试运行进度的插件

發布時間:2024/7/23 循环神经网络 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 matlab 求解进度,报告测试运行进度的插件 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在工作文件夾下的文件中,創建一個名為 cylinderPlotTest 的基于函數的測試。

function tests = cylinderPlotTest

tests = functiontests(localfunctions);

end

function setupOnce(testCase)

testCase.TestData.Figure = figure;

addTeardown(testCase,@close,testCase.TestData.Figure)

end

function setup(testCase)

testCase.TestData.Axes = axes('Parent',testCase.TestData.Figure);

addTeardown(testCase,@clf,testCase.TestData.Figure)

cylinder(testCase.TestData.Axes,10)

end

function testXLim(testCase)

xlim = testCase.TestData.Axes.XLim;

verifyLessThanOrEqual(testCase,xlim(1),-10,'Minimum x-limit too large')

verifyGreaterThanOrEqual(testCase,xlim(2),10,'Maximum x-limit too small')

end

function zdataTest(testCase)

s = findobj(testCase.TestData.Axes,'Type','surface');

verifyEqual(testCase,min(s.ZData(:)),0,'Min cylinder value is incorrect')

verifyEqual(testCase,max(s.ZData(:)),1,'Max cylinder value is incorrect')

end

在命令提示符下運行測試。

results = run(cylinderPlotTest);

Running cylinderPlotTest

..

Done cylinderPlotTest

__________

默認情況下,測試運行程序使用詳細級別 2。

創建一個用于報告級別 1 的診斷的測試運行程序,并重新運行該測試。

import matlab.unittest.TestRunner

import matlab.unittest.plugins.TestRunProgressPlugin

runner = TestRunner.withNoPlugins;

p = TestRunProgressPlugin.withVerbosity(1);

runner.addPlugin(p);

results = runner.run(cylinderPlotTest);

..

創建一個用于報告級別 4 的診斷的測試運行程序,并重新運行該測試。

runner = TestRunner.withNoPlugins;

p = TestRunProgressPlugin.withVerbosity(4);

runner.addPlugin(p);

results = runner.run(cylinderPlotTest);

Running cylinderPlotTest

Setting up cylinderPlotTest

Evaluating TestClassSetup: setupOnce

Done setting up cylinderPlotTest in 0.067649 seconds

Running cylinderPlotTest/testXLim

Evaluating TestMethodSetup: setup

Evaluating Test: testXLim

Evaluating TestMethodTeardown: teardown

Evaluating addTeardown function: clf

Done cylinderPlotTest/testXLim in 0.053834 seconds

Running cylinderPlotTest/zdataTest

Evaluating TestMethodSetup: setup

Evaluating Test: zdataTest

Evaluating TestMethodTeardown: teardown

Evaluating addTeardown function: clf

Done cylinderPlotTest/zdataTest in 0.037715 seconds

Tearing down cylinderPlotTest

Evaluating TestClassTeardown: teardownOnce

Evaluating addTeardown function: close

Done tearing down cylinderPlotTest in 0.022783 seconds

Done cylinderPlotTest in 0.18198 seconds

__________

總結

以上是生活随笔為你收集整理的matlab 求解进度,报告测试运行进度的插件的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。