吴恩达 ML作业提交:Grader sent no response

目录

前言

最近在补习吴恩达machinelearning 的课程,上完了课,肯定是要做作业的,做作业没有问题,但在提交作业时遇到了问题,记录如下,方便后来人。

正文

错误提示:

**! Submission failed: 错误使用 submitWithConfiguration>validateResponse (line 158)
Grader sent no response


Function: validateResponse
FileName: E:\Matlab\machine-learning-ex1\ex1\lib\submitWithConfiguration.m
LineNumber: 158

Please correct your code and resubmit.**

解决方案

1.先要自行在Windows系统上安装curl并添加系统环境变量(安装curl),总之成功以后在CMD输入“curl -help”是有反应的,重启Matlab并在Matlab中输入“System(‘curl -V’)”也是有反馈的。
2.在作业文件夹的lib文件夹里找到’submitWithConfiguration.m’这个文件,修改其中的131行和134行,在POST后加上-s参数。改成下面这样。
json_command = sprintf(‘echo jsonBody=%s | curl -k -X POST -s -d @- %s’, body, url);
3.我就是这样解决的,submit恢复正常,之后做exercise可能还要修改’submitWithConfiguration.m’这个文件。

问题解决:

==                                   Part Name |     Score | Feedback
==                                   --------- |     ----- | --------
==                            Warm-up Exercise |   0 /  10 | 
==           Computing Cost (for One Variable) |  40 /  40 | Nice work!
==         Gradient Descent (for One Variable) |  50 /  50 | Nice work!
==                       Feature Normalization |   0 /   0 | 
==     Computing Cost (for Multiple Variables) |   0 /   0 | 
==   Gradient Descent (for Multiple Variables) |   0 /   0 | 
==                            Normal Equations |   0 /   0 | 
==                                   --------------------------------
==                                             |  90 / 100 | 
== 
  • 6
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值