在做机器学习实战第九章的实验,使用Tkinter和matplotlib绘制回归树和模型树时,代码没有问题但是抛出了如下错误

ValueError: Masked arrays must be 1-D

Fatal Python error: PyEval_RestoreThread: NULL tstate

This application has requested the Runtime to terminate it in an unusual way.

Please contact the application's support team for more information.

在网上找了很久也没找到答案,最后发现是scatter语句出现了问题:

原来的scatter语句:

reDraw.a.scatter(reDraw.rawDat[:,0], reDraw.rawDat[:,1], s=5)

应改为:

reDraw.a.scatter([reDraw.rawDat[:,0]], [reDraw.rawDat[:,1]], s=5)

不懂得可以自己打印一下reDraw.rawDat[:,0]和reDraw.rawDat[:,1]看一看

This application has requested the Runtime to terminate it in an unusual way. Please contact the app相关推荐

  1. This application has requested the Runtime to terminate it in an unusual way Please contact the....

    今天安装完Matlanb7.0,打开软件,立马显示This application has requested the Runtime to terminate it in an unusual wa ...

  2. 关于C++程序运行程序是出现的this application has requested the runtime to terminate it in an unusual way. 异常分析

    运行程序是出现了this application has requested the runtime to terminate it in an unusual way. 的异常报告,以前也经常遇到, ...

  3. This application has requested the Runtime to terminate it in an unusual way.

    微软官方解释如下:症状 在 Microsoft Windows XP 中运行自定义 Microsoft Visual C++ 6.0 程序时,您可能会收到以下错误消息: This applicatio ...

  4. 图像识别工程师 VS The application has requested the Runtime to terminate it in an unusual way.

    图像处理开发需求.图像处理接私活挣零花钱,请加微信/QQ 2487872782 图像处理开发资料.图像处理技术交流请加QQ群,群号 271891601 The application has requ ...

  5. HT-IDE3000显示This application has requested the Runtime to terminate it in an unusual way

    打开HT-IDE3000时先弹出无法加载窗口,再弹出显示This application has requested the Runtime to terminate it in an unusual ...

  6. Qt自作聪明对QMutex初始化导致出现问题this application has requested the runtime to terminate it in an unusual way

    我在Linux下编写好的程序编译运行都没有问题,但是关掉程序后会在Application Output里提示The program has unexpectedly finished.以为是一些内存没 ...

  7. 程序运行程序是出现的this application has requested the runtime to terminate it in an unusual way. 异常分析

    解决办法: 1.开始–运行–输入cmd 2.输入 cd %windir%\system32 (进入windows安装目录的system32文件夹) 3.输入 Regsvr32 Msxml3.dll 原 ...

  8. MFC提示this application has requested the runtime to terminate it in an unusual way editbox框已经删了还在使用

    这个提示让人不知道怎么办? 有代码就好弄,找到出错点.注释,直到没有出错.再一步步缩小范围.最后发现界面上已经删了这个框,代码里还有调用导致的.

  9. DroidDraw不能运行,显示The application requires a Java Runtime Environment 1.4.0的问题

    最近想学习用DroidDraw进行UI布局,但下了DroidDraw软件之后点击就出错. 就是一个"The application requires a Java Runtime Envir ...

最新文章

  1. Linux 内核中的 Device Mapper 机制
  2. verilog基础-状态机之FPGA独立按键消抖设计与验证(熟练testbench的写法)
  3. 35+的互联网人都哪去了
  4. dncnn图像去噪_一种基于DnCNNs改进的图像降噪方法与流程
  5. debian下添加环境变量
  6. clang mingw
  7. 大数据时代,新起的数据有哪几种模型
  8. csdn学院的python培训怎么样_这段 Python 代码让程序员赚 300W,公司已确认!网友:神操作...
  9. Window安装Redis并设置为开机启动
  10. 支付宝公布春节抢红包大数据 金华人全国第五壕
  11. 解除Windows XP IIS 10个并发连接数的限制
  12. 知识点小记——广播地址与有限广播地址
  13. 基于ROS节点多机协同(无人机/无人车)分析
  14. 数据分析之统计知识总结
  15. 基于核函数加权直方图的Mean Shift目标跟踪 (二维颜色直方图)
  16. MySql 存储boolean的数据
  17. STM32中断优先级管理
  18. linux 神秘的0xC0000000内核逻辑地址内核虚拟地址直接映射高端内存
  19. 基于python-opencv实现鼠标绘制矩形、直线并根据直线斜率实现图片旋转
  20. Spring注入:配置注入(set注入和构造器注入)与注解注入

热门文章

  1. 小程序如何把文字玩出花样
  2. JavaScript设置对象的不可拓展
  3. Spring Integration 4.3.10 发布,Spring 消息通信
  4. 【Other】Ubuntu 14.04 pptp 客户端连接配置
  5. 关于angularjs dom渲染结束再执行的问题
  6. 怎样用ABBYY FineReader中的电子邮件发送OCR结果
  7. 类与类之间调用Computer-CPU-Mouse--看懂它看懂类之间的调用
  8. 安装keras and theano于google colab上
  9. 做excel的时候要快速按照纬度的角度来分析构建:一个词语“纬度”
  10. 什么是is research?