BaşlayınÜcretsiz başlayın

Matrix multiplication part II

Let's put your matrix multiplication skills to the test.

Bu egzersiz, kursun bir parçasıdır

Building Recommendation Engines with PySpark

Kursa Göz Atın

Egzersiz talimatları

  • Use the .shape attribute to understand the dimensions of matrices C and D, and determine whether these two matrices can be multiplied together or not.
  • If they can be multiplied, use the np.matmul() method to multiply them. If not, set C_times_D to None.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Print the dimensions of C
print(____.____)

# Print the dimensions of D
print(____.____)

# Can C and D be multiplied together?
C_times_D = ____
Kodu Düzenle ve Çalıştır