Possible Inconsistency and Variable Naming in Exercise 8.13 (Page 269)

オープン 初心者向け
#234 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
67/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
領域
documentation

調査の方向性

本の補足資料で、269ページのExercise 8.13のコードを探してください。散布図の変数名とunit 43のラベルの配置を確認し、その後のfitlmによる除外手順と比較してください。命名が明確で、プロットのラベルが読みやすければ完了です。このissueでは、特定のファイルやテストは指定されていません。

索引モデルが issue の本文から書いたものです。

説明

Suggestion for the next edition

Dear Professors,

While testing Exercise 8.13 on page 269, I noticed a small detail regarding variable naming and coordinate positioning in the 3D scatter plot snippet.

Image

In the code snippet for Exercise 8.13:

sel = [9 30 31 38 47 21];
scatter3(X(sel,1), X(sel,2), y(sel), 'r', 'MarkerFaceColor', 'r')
sel1 = 43;
scatter3(X(sel1,1), X(sel1,2), y(sel1), 'k', 'MarkerFaceColor', 'k')
text(X(sel1,1), X(sel1,2), y(sel1), '43')

Using sel for the six outliers and sel1 for unit 43 creates a slight naming collision/confusion when moving to the fitlm model refitting step further down page 269, where sel is reused to specify the excluded units:

sel = [9 30 31 38 47 21];
out = fitlm(X, y, 'Exclude', sel)

Additionally, calling text() with the exact coordinates of unit 43 renders the label '43' directly over the black marker point, making it hard to read depending on the 3D rotation angle.

Also, maybe I suggest adding a small spatial offset to the text command can improve the readability ex:
text(X(sel1,1) + 0.1, X(sel1,2), y(sel1), '43')

Thanks again for your time!

主要言語
MATLAB
スター
30
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

UniprJRC/DSwithMATLAB のほかの issue

UniprJRC/DSwithMATLAB の issue をすべて見る

似ている issue

MATLAB の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。