5
5
"colab" : {
6
6
"name" : " LearningNumPy.ipynb" ,
7
7
"provenance" : [],
8
- "authorship_tag" : " ABX9TyP69h/YXpHp2SK+vCId8xpT " ,
8
+ "authorship_tag" : " ABX9TyNyVFN/S9A0cBHlkH6wVutJ " ,
9
9
"include_colab_link" : true
10
10
},
11
11
"kernelspec" : {
436
436
"execution_count" : 11
437
437
}
438
438
]
439
+ },
440
+ {
441
+ "cell_type" : " code" ,
442
+ "metadata" : {
443
+ "colab" : {
444
+ "base_uri" : " https://localhost:8080/"
445
+ },
446
+ "id" : " 5OFoU7f9EWMS" ,
447
+ "outputId" : " 72d15dc3-d2f3-4e71-ab53-bba4dce6792b"
448
+ },
449
+ "source" : [
450
+ " np.ones((3,3),dtype=int)"
451
+ ],
452
+ "execution_count" : 19 ,
453
+ "outputs" : [
454
+ {
455
+ "output_type" : " execute_result" ,
456
+ "data" : {
457
+ "text/plain" : [
458
+ " array([[1, 1, 1],\n " ,
459
+ " [1, 1, 1],\n " ,
460
+ " [1, 1, 1]])"
461
+ ]
462
+ },
463
+ "metadata" : {},
464
+ "execution_count" : 19
465
+ }
466
+ ]
467
+ },
468
+ {
469
+ "cell_type" : " code" ,
470
+ "metadata" : {
471
+ "colab" : {
472
+ "base_uri" : " https://localhost:8080/"
473
+ },
474
+ "id" : " jMapSabjK7Yk" ,
475
+ "outputId" : " b02fc2d9-d2eb-4ac6-dc72-a958f8151b98"
476
+ },
477
+ "source" : [
478
+ " np.random.rand(3,3)"
479
+ ],
480
+ "execution_count" : 20 ,
481
+ "outputs" : [
482
+ {
483
+ "output_type" : " execute_result" ,
484
+ "data" : {
485
+ "text/plain" : [
486
+ " array([[0.69142287, 0.36364357, 0.36423402],\n " ,
487
+ " [0.9731049 , 0.99800353, 0.2582793 ],\n " ,
488
+ " [0.33640083, 0.91610618, 0.39623019]])"
489
+ ]
490
+ },
491
+ "metadata" : {},
492
+ "execution_count" : 20
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "cell_type" : " code" ,
498
+ "metadata" : {
499
+ "colab" : {
500
+ "base_uri" : " https://localhost:8080/"
501
+ },
502
+ "id" : " Vc_fnDjGLHgZ" ,
503
+ "outputId" : " 0e22d36b-c06c-4532-9725-110fe53f67c3"
504
+ },
505
+ "source" : [
506
+ " np.random.randn(3,3)"
507
+ ],
508
+ "execution_count" : 21 ,
509
+ "outputs" : [
510
+ {
511
+ "output_type" : " execute_result" ,
512
+ "data" : {
513
+ "text/plain" : [
514
+ " array([[ 0.07422061, 0.78784287, 0.6334325 ],\n " ,
515
+ " [ 1.31490495, -0.98815777, 0.75041514],\n " ,
516
+ " [-0.10170204, 1.39244735, -0.01259737]])"
517
+ ]
518
+ },
519
+ "metadata" : {},
520
+ "execution_count" : 21
521
+ }
522
+ ]
523
+ },
524
+ {
525
+ "cell_type" : " code" ,
526
+ "metadata" : {
527
+ "colab" : {
528
+ "base_uri" : " https://localhost:8080/"
529
+ },
530
+ "id" : " mL63BL3nL0oC" ,
531
+ "outputId" : " 2f3aeaa5-19c5-45d4-8038-46076eb72cf3"
532
+ },
533
+ "source" : [
534
+ " np.random.randint(0,100,8)"
535
+ ],
536
+ "execution_count" : 28 ,
537
+ "outputs" : [
538
+ {
539
+ "output_type" : " execute_result" ,
540
+ "data" : {
541
+ "text/plain" : [
542
+ " array([44, 35, 82, 84, 48, 13, 88, 65])"
543
+ ]
544
+ },
545
+ "metadata" : {},
546
+ "execution_count" : 28
547
+ }
548
+ ]
549
+ },
550
+ {
551
+ "cell_type" : " code" ,
552
+ "metadata" : {
553
+ "colab" : {
554
+ "base_uri" : " https://localhost:8080/"
555
+ },
556
+ "id" : " 52NkDqEpMM1E" ,
557
+ "outputId" : " 8175f78e-e702-478d-a32d-70fa83da68ef"
558
+ },
559
+ "source" : [
560
+ " np.random.random_sample((3))"
561
+ ],
562
+ "execution_count" : 31 ,
563
+ "outputs" : [
564
+ {
565
+ "output_type" : " execute_result" ,
566
+ "data" : {
567
+ "text/plain" : [
568
+ " array([0.92638251, 0.86238795, 0.22353852])"
569
+ ]
570
+ },
571
+ "metadata" : {},
572
+ "execution_count" : 31
573
+ }
574
+ ]
439
575
}
440
576
]
441
577
}
0 commit comments