coursera-api - 如何解决八度机器学习提交错误?
问题描述
如何解决提交错误:
curl: (6) Couldn't resolve host 'www-origin.coursera.org'
m = 15
error] submission with curl() was not successful
!! Submission failed: Grader sent no response
Function: submitWithConfiguration>validateResponse
FileName: C:\Users\admin\Desktop\ex7\lib\submitWithConfiguration.m
LineNumber: 158
解决方案
此错误可能是因为您的计算机目前无法连接到 Internet。这是从在线评分器收集数据背后的功能。
function response = validateResponse(resp)
% test if the response is json or an HTML page
isJson = length(resp) > 0 && resp(1) == '{';
isHtml = findstr(lower(resp), '<html');
if (isJson)
response = resp;
elseif (isHtml)
% the response is html, so its probably an error message
printHTMLContents(resp);
error('Grader response is an HTML message');
else
error('Grader sent no response');
end
end
现在,当响应为空时,将打印语句:“Grader sent no response”。并且在未连接计算机时响应可以为空。希望这是您错误背后的原因,如果不是,请告诉我。
推荐阅读
- sql-server - 如何配置 Entity Framework Core 以处理从 Oracle 检索的 nchar(N) 字段?
- php - 任何人都可以调试这个 SQL 查询吗?
- java - 如何在 Quarkus 中使用 Vert.x Web API 合约
- python - 当我使用 Matplotlib 做作业时,会报告 Value Error。Matplotlib 中 First Dimension 的代码错误是什么?我该如何纠正它?
- angular - TypeError: this.syncService.getShops(...).valueChanges 不是函数
- java - SpringBoot 中的@EntityListeners
- python - 如何解决 .accepted_renderer 未在 Django 中的响应错误上设置
- python - 需要确保我正确地解释了这个问题(我解决了这个问题,我需要一些支持来解除我的问题禁令)
- airflow - 升级到 Airflow 2,没有名为“airflow.hooks.base”的模块
- ubuntu - 未通过 USB C 型连接器检测到外接显示器