B1 中級 10 タグ追加 保存
動画の字幕をクリックしてすぐ単語の意味を調べられます!
単語帳読み込み中…
字幕の修正報告
Okay, we covered the matrix arithmetic, which means the time has come to talk about some more data science oriented operations.
Cool.
I'm almost certain that if you have our studio open as you're going through the lessons, you will a grasp everything a lot better.
But that's a given and be Have The Matrix Don't Matt Data we created in the previous lesson loaded.
If you have started a new session and don't have the script from last time saved, I have entered the code.
We used this comment so few free to recreate the Matrix because that's what we'll be using in this lesson.
All right, so I have my matrix of us and worldwide box office.
Gross sings for the Matrix movie franchise, and I want to learn how much in total all three movies made at the box office, both around the world and in the U.
S.
On Lee.
Luckily, there is the simplest command in our that lets me do that.
It's called cold sums, and it returns to some for each calm in your data structure.
The only argument you need to pass is your data like this There these organisms of all values in Age of the Do Columns notice that the S for sums is capitalized.
Remember that our is case sensitive language.
If you don't use the proper capitalizations or won't know what you wanted to do, right, as you can probably guess, if there is a co sums, there will probably also be a row Sums function, just as it was with the call names and bro names and our bind and See Bint.
And there is Let's Try it out, even though it isn't too useful in our particular situation because one of our columns contains the worldwide box office figures and the other contains the US Cross, which is part of the worldwide statistic.
Nonetheless.
Now we have the total US and worldwide grosses for each movie in the trilogy.
Fantastic.
What if I wanted to know how much, on average, the movies made in the U.
S.
And across the globe?
Well, I can use the coal means function.
It works exactly like Qassams, but gives us the means.
Further columns in our data structure like this again be mindful of the capital M because our is case sensitive awesome.
We can also do row means and that will give us the averages for each row in the Matrix.
And there it is.
We can now find out the sums and the means for columns and Robin, a matrix that is super super useful when working with larger data, and you want to get a quick feel for what it has in store for you.
Often it will be useful to save this sums and averages.
You compute a separate rows and columns and add them to your data searcher.
Can you guess?
One way to do that, I'll give you a couple of seconds.
Of course, you can save each output as a vector and then simply bind what you need to displayed in The Matrix with our bind and see bind.
Let's try it out.
I will go back up and save the costumes and co means results into Victor's called Total and Average, and I will create a new matrix called matrix dot pre lim with our bind and stick the two new vectors to the bottom of my data.
And there you have it a nice and needs little matrix that tells a numbering from story.
Excellent.
Okay, let's rock it up here.
But before we go, I have one final question.
The blue pill are the red pill.
You take the blue pill, the story ends.
You wake up in your bed and believe whatever you want to believe.
You take the red pill, you stay in our Lent and I will show you how deep the rabbit hole goes.
Form or videos like this one, please subscribe.
コツ:単語をクリックしてすぐ意味を調べられます!

読み込み中…

Data Science & Statistics: Matrix operations in R

10 タグ追加 保存
林宜悉 2020 年 3 月 14 日 に公開
お勧め動画
  1. 1. クリック一つで単語を検索

    右側のスプリクトの単語をクリックするだけで即座に意味が検索できます。

  2. 2. リピート機能

    クリックするだけで同じフレーズを何回もリピート可能!

  3. 3. ショートカット

    キーボードショートカットを使うことによって勉強の効率を上げることが出来ます。

  4. 4. 字幕の表示/非表示

    日・英のボタンをクリックすることで自由に字幕のオンオフを切り替えられます。

  5. 5. 動画をブログ等でシェア

    コードを貼り付けてVoiceTubeの動画再生プレーヤーをブログ等でシェアすることが出来ます!

  6. 6. 全画面再生

    左側の矢印をクリックすることで全画面で再生できるようになります。

  1. クイズ付き動画

    リスニングクイズに挑戦!

  1. クリックしてメモを表示

  1. UrbanDictionary 俚語字典整合查詢。一般字典查詢不到你滿意的解譯,不妨使用「俚語字典」,或許會讓你有滿意的答案喔