首页 > 解决方案 > 如何解决八度机器学习提交错误?

问题描述

如何解决提交错误:

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 

标签: coursera-api

解决方案


此错误可能是因为您的计算机目前无法连接到 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”。并且在未连接计算机时响应可以为空。希望这是您错误背后的原因,如果不是,请告诉我。


推荐阅读