736a5b8
joyvan 6 years ago
4 changed file(s) with 128 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
629629 "outputs": [],
630630 "source": [
631631 "a = [10, 11, 12]\n",
632 "a.append(['a','b'])\n",
632 "a.append(['a', 'b'])\n",
633633 "print (a)"
634634 ]
635635 },
648648 "outputs": [],
649649 "source": [
650650 "a = [10, 11, 12]\n",
651 "a.extend(['a','b'])\n",
651 "a.extend(['a', 'b'])\n",
652652 "print (a)"
653653 ]
654654 },
12741274 "上面例子中的这两条语句:\n",
12751275 "\n",
12761276 "```python\n",
1277 "\n",
12771278 "print(\"Hey!\") \n",
12781279 "print(\"x is positive\")\n",
12791280 "\n",
393393 },
394394 {
395395 "cell_type": "code",
396 "execution_count": null,
396 "execution_count": 5,
397397 "metadata": {},
398398 "outputs": [],
399399 "source": [
497497 },
498498 {
499499 "cell_type": "code",
500 "execution_count": null,
500 "execution_count": 6,
501501 "metadata": {},
502502 "outputs": [],
503503 "source": [
570570 },
571571 {
572572 "cell_type": "code",
573 "execution_count": null,
574 "metadata": {},
575 "outputs": [],
573 "execution_count": 7,
574 "metadata": {},
575 "outputs": [
576 {
577 "data": {
578 "application/vnd.jupyter.widget-view+json": {
579 "model_id": "3188bf852f504283a32ec8d9c36f8df6",
580 "version_major": 2,
581 "version_minor": 0
582 },
583 "text/plain": [
584 "HTML(value='<h1>准备数据</h1>', placeholder='')"
585 ]
586 },
587 "metadata": {},
588 "output_type": "display_data"
589 },
590 {
591 "data": {
592 "application/vnd.jupyter.widget-view+json": {
593 "model_id": "f699bee0823e4d44a63d633ffb325a37",
594 "version_major": 2,
595 "version_minor": 0
596 },
597 "text/plain": [
598 "HBox(children=(VBox(children=(FloatSlider(value=0.0, continuous_update=False, description='每个 batch 内增强图片的比例:'…"
599 ]
600 },
601 "metadata": {},
602 "output_type": "display_data"
603 },
604 {
605 "data": {
606 "application/vnd.jupyter.widget-view+json": {
607 "model_id": "20c9abfac7f942d09a0d899bd244156a",
608 "version_major": 2,
609 "version_minor": 0
610 },
611 "text/plain": [
612 "HTML(value='<h1>构建模型</h1>', placeholder='')"
613 ]
614 },
615 "metadata": {},
616 "output_type": "display_data"
617 },
618 {
619 "data": {
620 "application/vnd.jupyter.widget-view+json": {
621 "model_id": "0d8aee241fb7434ab7cdbbab38706072",
622 "version_major": 2,
623 "version_minor": 0
624 },
625 "text/plain": [
626 "HBox(children=(VBox(children=(IntSlider(value=1, description='隐藏层数目:', layout=Layout(width='400px'), max=3, st…"
627 ]
628 },
629 "metadata": {},
630 "output_type": "display_data"
631 },
632 {
633 "data": {
634 "application/vnd.jupyter.widget-view+json": {
635 "model_id": "4ee8896dd7f041fe8e1760a4039a7670",
636 "version_major": 2,
637 "version_minor": 0
638 },
639 "text/plain": [
640 "HTML(value='<h1>训练模型</h1>', placeholder='')"
641 ]
642 },
643 "metadata": {},
644 "output_type": "display_data"
645 },
646 {
647 "data": {
648 "application/vnd.jupyter.widget-view+json": {
649 "model_id": "6d3a35c6923c4f19b69d82e46942219e",
650 "version_major": 2,
651 "version_minor": 0
652 },
653 "text/plain": [
654 "SelectionSlider(continuous_update=False, description='训练轮数:', layout=Layout(width='400px'), options=(5, 10, 20…"
655 ]
656 },
657 "metadata": {},
658 "output_type": "display_data"
659 },
660 {
661 "data": {
662 "application/vnd.jupyter.widget-view+json": {
663 "model_id": "1eed44ce2b764c2aa5a5083763a6e070",
664 "version_major": 2,
665 "version_minor": 0
666 },
667 "text/plain": [
668 "Button(button_style='info', description='开始训练', style=ButtonStyle(), tooltip='点击开始训练')"
669 ]
670 },
671 "metadata": {},
672 "output_type": "display_data"
673 },
674 {
675 "data": {
676 "application/vnd.jupyter.widget-view+json": {
677 "model_id": "b4ff14fa4c61438d9e5d8ffa608e99a1",
678 "version_major": 2,
679 "version_minor": 0
680 },
681 "text/plain": [
682 "Output()"
683 ]
684 },
685 "metadata": {},
686 "output_type": "display_data"
687 }
688 ],
576689 "source": [
577690 "mlp = NN()\n",
578691 "mlp.build_model()\n",
787900 "metadata": {},
788901 "outputs": [],
789902 "source": []
903 },
904 {
905 "cell_type": "code",
906 "execution_count": null,
907 "metadata": {},
908 "outputs": [],
909 "source": []
790910 }
791911 ],
792912 "metadata": {
Binary diff not shown
Binary diff not shown