File tree Expand file tree Collapse file tree 1 file changed +30
-29
lines changed
Expand file tree Collapse file tree 1 file changed +30
-29
lines changed Original file line number Diff line number Diff line change 8686 },
8787 {
8888 "cell_type" : " code" ,
89- "execution_count" : 1 ,
89+ "execution_count" : 26 ,
9090 "metadata" : {},
9191 "outputs" : [],
9292 "source" : [
123123 },
124124 {
125125 "cell_type" : " code" ,
126- "execution_count" : 23 ,
126+ "execution_count" : 27 ,
127127 "metadata" : {},
128128 "outputs" : [],
129129 "source" : [
152152 },
153153 {
154154 "cell_type" : " code" ,
155- "execution_count" : 24 ,
155+ "execution_count" : 28 ,
156156 "metadata" : {},
157157 "outputs" : [
158158 {
239239 },
240240 {
241241 "cell_type" : " code" ,
242- "execution_count" : 9 ,
242+ "execution_count" : 29 ,
243243 "metadata" : {},
244244 "outputs" : [],
245245 "source" : [
259259 },
260260 {
261261 "cell_type" : " code" ,
262- "execution_count" : 10 ,
262+ "execution_count" : 30 ,
263263 "metadata" : {},
264264 "outputs" : [
265265 {
284284 },
285285 {
286286 "cell_type" : " code" ,
287- "execution_count" : 11 ,
287+ "execution_count" : 31 ,
288288 "metadata" : {},
289289 "outputs" : [],
290290 "source" : [
300300 },
301301 {
302302 "cell_type" : " code" ,
303- "execution_count" : 12 ,
303+ "execution_count" : 32 ,
304304 "metadata" : {},
305305 "outputs" : [],
306306 "source" : [
334334 },
335335 {
336336 "cell_type" : " code" ,
337- "execution_count" : 14 ,
337+ "execution_count" : 33 ,
338338 "metadata" : {},
339339 "outputs" : [
340340 {
341341 "name" : " stdout" ,
342342 "output_type" : " stream" ,
343343 "text" : [
344- " 0.9662243326599138 0.03377566734008619 \n "
344+ " 0.6969888901292717 0.3030111098707283 \n "
345345 ]
346346 }
347347 ],
358358 },
359359 {
360360 "cell_type" : " code" ,
361- "execution_count" : 15 ,
361+ "execution_count" : 34 ,
362362 "metadata" : {},
363363 "outputs" : [],
364364 "source" : [
375375 },
376376 {
377377 "cell_type" : " code" ,
378- "execution_count" : 16 ,
378+ "execution_count" : 35 ,
379379 "metadata" : {},
380380 "outputs" : [
381381 {
418418 },
419419 {
420420 "cell_type" : " code" ,
421- "execution_count" : 17 ,
421+ "execution_count" : 36 ,
422422 "metadata" : {},
423423 "outputs" : [],
424424 "source" : [
435435 },
436436 {
437437 "cell_type" : " code" ,
438- "execution_count" : 18 ,
438+ "execution_count" : 37 ,
439439 "metadata" : {},
440440 "outputs" : [
441441 {
453453 },
454454 {
455455 "cell_type" : " code" ,
456- "execution_count" : 19 ,
456+ "execution_count" : 38 ,
457457 "metadata" : {},
458458 "outputs" : [
459459 {
480480 },
481481 {
482482 "cell_type" : " code" ,
483- "execution_count" : 20 ,
483+ "execution_count" : 39 ,
484484 "metadata" : {},
485485 "outputs" : [],
486486 "source" : [
502502 },
503503 {
504504 "cell_type" : " code" ,
505- "execution_count" : 21 ,
505+ "execution_count" : 40 ,
506506 "metadata" : {},
507507 "outputs" : [],
508508 "source" : [
529529 },
530530 {
531531 "cell_type" : " code" ,
532- "execution_count" : 22 ,
532+ "execution_count" : 41 ,
533533 "metadata" : {},
534534 "outputs" : [
535535 {
558558 },
559559 {
560560 "cell_type" : " code" ,
561- "execution_count" : 83 ,
561+ "execution_count" : 42 ,
562562 "metadata" : {},
563563 "outputs" : [],
564564 "source" : [
578578 },
579579 {
580580 "cell_type" : " code" ,
581- "execution_count" : 87 ,
581+ "execution_count" : 43 ,
582582 "metadata" : {},
583583 "outputs" : [],
584584 "source" : [
587587 },
588588 {
589589 "cell_type" : " code" ,
590- "execution_count" : 88 ,
590+ "execution_count" : 44 ,
591591 "metadata" : {},
592592 "outputs" : [],
593593 "source" : [
601601 },
602602 {
603603 "cell_type" : " code" ,
604- "execution_count" : 89 ,
604+ "execution_count" : 45 ,
605605 "metadata" : {},
606606 "outputs" : [
607607 {
622622 },
623623 {
624624 "cell_type" : " code" ,
625- "execution_count" : 90 ,
625+ "execution_count" : 46 ,
626626 "metadata" : {},
627627 "outputs" : [
628628 {
641641 },
642642 {
643643 "cell_type" : " code" ,
644- "execution_count" : 91 ,
644+ "execution_count" : 47 ,
645645 "metadata" : {},
646646 "outputs" : [],
647647 "source" : [
650650 },
651651 {
652652 "cell_type" : " code" ,
653- "execution_count" : 92 ,
653+ "execution_count" : 48 ,
654654 "metadata" : {},
655655 "outputs" : [
656656 {
667667 },
668668 {
669669 "cell_type" : " code" ,
670- "execution_count" : 93 ,
670+ "execution_count" : 49 ,
671671 "metadata" : {},
672672 "outputs" : [],
673673 "source" : [
678678 " y_hat = sigmoid( np.dot(w, x) + b )\n " ,
679679 " if y_hat > .5:\n " ,
680680 " y_hat = 1\n " ,
681- " else: y_hat = 0\n " ,
681+ " else:\n " ,
682+ " y_hat = 0\n " ,
682683 " res.append( (y, y_hat) )\n " ,
683684 " return res"
684685 ]
685686 },
686687 {
687688 "cell_type" : " code" ,
688- "execution_count" : 94 ,
689+ "execution_count" : 50 ,
689690 "metadata" : {},
690691 "outputs" : [],
691692 "source" : [
694695 },
695696 {
696697 "cell_type" : " code" ,
697- "execution_count" : 95 ,
698+ "execution_count" : 51 ,
698699 "metadata" : {},
699700 "outputs" : [],
700701 "source" : [
703704 },
704705 {
705706 "cell_type" : " code" ,
706- "execution_count" : 96 ,
707+ "execution_count" : 52 ,
707708 "metadata" : {},
708709 "outputs" : [
709710 {
You can’t perform that action at this time.
0 commit comments