<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>講義資料 on プログラミング演習B</title><link>https://ksubpb.github.io/2026/categories/%E8%AC%9B%E7%BE%A9%E8%B3%87%E6%96%99/</link><description>Recent content in 講義資料 on プログラミング演習B</description><generator>Hugo -- gohugo.io</generator><language>ja</language><copyright>© 2026</copyright><lastBuildDate>Wed, 09 Dec 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ksubpb.github.io/2026/categories/%E8%AC%9B%E7%BE%A9%E8%B3%87%E6%96%99/index.xml" rel="self" type="application/rss+xml"/><item><title>Pythonの基本</title><link>https://ksubpb.github.io/2026/lesson01/grammer/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson01/grammer/</guid><description>&lt;h2 class="relative group"&gt;基本文法&#10; &lt;div id="基本文法" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e5%9f%ba%e6%9c%ac%e6%96%87%e6%b3%95" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&#10;&lt;h3 class="relative group"&gt;コメント&#10; &lt;div id="コメント" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h3&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.17（Lesson 2）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;Pythonでは &lt;code&gt;#&lt;/code&gt; 以降の文字列はコメントとして扱われます。&#10;コメントはプログラムの説明やメモを書くために使います。&lt;/p&gt;</description></item><item><title>クラス定義</title><link>https://ksubpb.github.io/2026/lesson06/class_definition/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson06/class_definition/</guid><description>関数とそれに関するデータをまとめた &lt;strong&gt;クラス（Class）&lt;/strong&gt; という概念が用意されています。</description></item><item><title>セット</title><link>https://ksubpb.github.io/2026/lesson02/set/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson02/set/</guid><description>&lt;h2 class="relative group"&gt;セット&#10; &lt;div id="セット" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e3%82%bb%e3%83%83%e3%83%88" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.155（Lesson 6.5）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;セットは並び順のないデータの集合を表すコレクションです。&#10;セットは波括弧 &lt;code&gt;{}&lt;/code&gt; で囲み、リストに格納する各データ（要素）はカンマ &lt;code&gt;,&lt;/code&gt; で区切ります。&#10;セットの値は重複させることはできず、順序もありません。&lt;/p&gt;</description></item><item><title>ディレクトリ構造の探索</title><link>https://ksubpb.github.io/2026/lesson05/traverse/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson05/traverse/</guid><description>ディレクトリ内の特定のファイルを探すとき、ディレクトリ内のディレクトリを再帰的に探索する必要があります。</description></item><item><title>関数(2/2) 高度な引数の扱い</title><link>https://ksubpb.github.io/2026/lesson03/function/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson03/function/</guid><description>Pythonでは、高度な引数の扱いが可能で、引数の数が一致していなくてもエラーにならないようにできます。</description></item><item><title>機械学習とは</title><link>https://ksubpb.github.io/2026/lesson08/basics/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson08/basics/</guid><description>機械学習とは何かを理解し、機械学習の基本的な考え方について学びます。</description></item><item><title>教師あり学習</title><link>https://ksubpb.github.io/2026/lesson09/supervised_learning/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson09/supervised_learning/</guid><description>機械学習の手法の一つである教師あり学習について学びます。</description></item><item><title>教師なし学習</title><link>https://ksubpb.github.io/2026/lesson10/unsupervised_learning/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson10/unsupervised_learning/</guid><description>機械学習の手法の一つである教師なし学習について学びます。</description></item><item><title>再帰呼び出し</title><link>https://ksubpb.github.io/2026/lesson04/recursive/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson04/recursive/</guid><description>&lt;h2 class="relative group"&gt;再帰呼び出し&#10; &lt;div id="再帰呼び出し" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e5%86%8d%e5%b8%b0%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;再帰呼び出しとは、ある関数が自分自身を呼び出すことを指します。&#10;数学の漸化式をそのままプログラムで表現したものとして捉えることができます。&lt;/p&gt;</description></item><item><title>特殊なメソッド</title><link>https://ksubpb.github.io/2026/lesson07/special_method/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson07/special_method/</guid><description>クラスに特別な名前のメソッド（特殊メソッド; special method）を用意することで、Python の組み込み関数の処理や演算子の処理を上書き（オーバーライド（override））できるようになります。</description></item><item><title>第01講 プログラミングAの復習、基本データ型（1/2; リスト、タプル）</title><link>https://ksubpb.github.io/2026/lesson01/</link><pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson01/</guid><description>&lt;h2 class="relative group"&gt;概要&#10; &lt;div id="概要" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e6%a6%82%e8%a6%81" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;第01講では、プログラミングAで学んだ内容を復習します。&#10;具体的には、Pythonの基本文法、ファイルの読み書き、リストとタプルについて復習します。&#10;加えて、&lt;a href="https://ksubpb.github.io/2026/lesson01/sys.argv/#%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%a9%e3%82%a4%e3%83%b3%e5%bc%95%e6%95%b0" &gt;コマンドライン引数&lt;/a&gt;についても学びます。&lt;/p&gt;</description></item><item><title>クラスタリング</title><link>https://ksubpb.github.io/2026/lesson10/clustering/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson10/clustering/</guid><description>データから基準を見つけ出し、データをいくつかのグループ（クラスタ）に分類します。</description></item><item><title>コンストラクタ</title><link>https://ksubpb.github.io/2026/lesson06/constructor/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson06/constructor/</guid><description>オブジェクトを生成する際に、そのオブジェクトの初期化を行うメソッドを &lt;strong&gt;コンストラクタ（Constructor）&lt;/strong&gt; と呼びます。</description></item><item><title>ディクショナリ</title><link>https://ksubpb.github.io/2026/lesson02/dictionary/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson02/dictionary/</guid><description>&lt;h2 class="relative group"&gt;ディクショナリ&#10; &lt;div id="ディクショナリ" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e3%83%87%e3%82%a3%e3%82%af%e3%82%b7%e3%83%a7%e3%83%8a%e3%83%aa" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.142（Lesson 6.2）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;ディクショナリは、キーと値のペアを格納するコレクションです。&#10;他の言語では、Map や Hash、連想配列と呼ばれることがあります。&#10;ディクショナリは、リストのインデックスの代わりに、キーと呼ばれる任意の型を用いて、対応するデータを格納します。&lt;/p&gt;</description></item><item><title>ファイルの読み書き</title><link>https://ksubpb.github.io/2026/lesson01/file/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson01/file/</guid><description>&lt;h2 class="relative group"&gt;ファイルを開く&#10; &lt;div id="ファイルを開く" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e9%96%8b%e3%81%8f" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.286（Lesson 10）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;Python でファイルを読み書きするには、&lt;code&gt;open&lt;/code&gt; 関数を使います。&#10;&lt;code&gt;open&lt;/code&gt;関数の第1引数が対象のファイル名、第２引数がオープンモードです。&#10;オープンモードは教科書 p.288 表10-1 に記載されていますが、以下の3種類を区別できれば良いでしょう。&lt;/p&gt;</description></item><item><title>モジュール</title><link>https://ksubpb.github.io/2026/lesson07/module/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson07/module/</guid><description>Python では、他のファイルを読み込むための仕組みとして &lt;strong&gt;モジュール（Module）&lt;/strong&gt; が用意されています。</description></item><item><title>基本的な統計指標</title><link>https://ksubpb.github.io/2026/lesson08/statistics/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson08/statistics/</guid><description>機械学習の基礎の前提として、基本的な統計指標について学びます。</description></item><item><title>再帰の練習</title><link>https://ksubpb.github.io/2026/lesson04/practice/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson04/practice/</guid><description>呼び出しの様子を表示して再帰の動きを目で確かめ、壊れた再帰関数を直します。</description></item><item><title>線形回帰（linear regression）</title><link>https://ksubpb.github.io/2026/lesson09/linear_regression/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson09/linear_regression/</guid><description>学習データから構築したモデルを用いて、連続値の目的変数を予測します。</description></item><item><title>二分探索</title><link>https://ksubpb.github.io/2026/lesson05/binary_search/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson05/binary_search/</guid><description>二分探索（Binary Search）は、ソート済みのリストに対して、探索する範囲を半分に狭めていくことで、探索する要素を見つけるアルゴリズムです。</description></item><item><title>変数とスコープ</title><link>https://ksubpb.github.io/2026/lesson03/scope/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson03/scope/</guid><description>プログラム言語で扱う変数には、有効範囲がありスコープと呼ばれます。</description></item><item><title>第02講 基本データ型（2/2; セット、ディクショナリ）、関数（1/2; 関数の基礎）</title><link>https://ksubpb.github.io/2026/lesson02/</link><pubDate>Wed, 07 Oct 2026 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson02/</guid><description>&lt;h2 class="relative group"&gt;概要&#10; &lt;div id="概要" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e6%a6%82%e8%a6%81" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;第02講では、前半で集合を扱うもののうち &lt;strong&gt;セット（set）&lt;/strong&gt; と &lt;strong&gt;ディクショナリ（dictionary）&lt;/strong&gt; について学習します。&#10;セットは順序なしの要素の集まりであり、ディクショナリはキーと値のペアの集まりです。&lt;/p&gt;</description></item><item><title>assert文によるテスト</title><link>https://ksubpb.github.io/2026/lesson03/assert_test/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson03/assert_test/</guid><description>プログラムが期待通りに動いているかを確認するためには、実行してみて、実行結果が期待通りであるかを確認するテストを実施する必要があります。ここではこのテストの１手法を学びます。</description></item><item><title>カプセル化</title><link>https://ksubpb.github.io/2026/lesson07/encapsulation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson07/encapsulation/</guid><description>カプセル化とは、オブジェクト指向プログラミングの特徴の一つで、単純であろうと見せかける仕組みのことです。</description></item><item><title>ベクトル</title><link>https://ksubpb.github.io/2026/lesson08/vector/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson08/vector/</guid><description>&lt;h2 class="relative group"&gt;ベクトル（vector）とは&#10; &lt;div id="ベクトルvectorとは" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e3%83%99%e3%82%af%e3%83%88%e3%83%abvector%e3%81%a8%e3%81%af" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.417（Quick Reference）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;ベクトルとは、向きと大きさを持った量を表す数学的な概念です。&#10;Python では、ベクトルを表す直接的な型はありません。&#10;ただし、Numpyの配列（&lt;code&gt;array&lt;/code&gt;）を用いることで、ベクトルを表現できます。&lt;/p&gt;</description></item><item><title>リストとタプル</title><link>https://ksubpb.github.io/2026/lesson01/list_and_tuple/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson01/list_and_tuple/</guid><description>&lt;h2 class="relative group"&gt;リスト（配列）&#10; &lt;div id="リスト配列" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e3%83%aa%e3%82%b9%e3%83%88%e9%85%8d%e5%88%97" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.94（Lesson 5）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;プログラムを書く上で、複数のデータをまとめて扱うことがよくあります。&#10;このような場合、コレクションと呼ばれるデータ構造を用います。&#10;コレクションには、リスト、セット、ディクショナリなどのデータ構造がありますが、ここではリストについて説明します。&lt;/p&gt;</description></item><item><title>関数(1/2) 関数の基礎</title><link>https://ksubpb.github.io/2026/lesson02/function/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson02/function/</guid><description>&lt;h2 class="relative group"&gt;関数とは&#10; &lt;div id="関数とは" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e9%96%a2%e6%95%b0%e3%81%a8%e3%81%af" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.163（Lesson 7）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;関数とは、処理の集まりに名前をつけたものです。&#10;何度も行う処理の集まりがあったときに、その処理を関数として定義しておくことで、同じ処理を何度も書く必要がなくなります。&lt;/p&gt;</description></item><item><title>決定木（Decision Tree）</title><link>https://ksubpb.github.io/2026/lesson09/decision_tree/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson09/decision_tree/</guid><description>学習データから構築したモデルを用いて、カテゴリ分けされた目的変数を予測します。</description></item><item><title>次元削減（Dimensionality Reduction）</title><link>https://ksubpb.github.io/2026/lesson10/dimensionality_reduction/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson10/dimensionality_reduction/</guid><description>データから基準を見つけ出し、データをいくつかのグループ（クラスタ）に分類します。</description></item><item><title>第03講 関数（2/2; 関数の応用）</title><link>https://ksubpb.github.io/2026/lesson03/</link><pubDate>Wed, 14 Oct 2026 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson03/</guid><description>&lt;h2 class="relative group"&gt;概要&#10; &lt;div id="概要" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e6%a6%82%e8%a6%81" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;第03講では、前回の後半に引き続き関数について学習します。&#10;より高度な関数の使い方で、知っているとプログラムが楽に書けるようになる機能である、&#10;デフォルト引数、可変長引数、キーワード引数を紹介します。&lt;/p&gt;</description></item><item><title>リストとタプルの操作</title><link>https://ksubpb.github.io/2026/lesson01/iterator/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson01/iterator/</guid><description>&lt;h2 class="relative group"&gt;繰り返し、イテレータ&#10; &lt;div id="繰り返しイテレータ" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e7%b9%b0%e3%82%8a%e8%bf%94%e3%81%97%e3%82%a4%e3%83%86%e3%83%ac%e3%83%bc%e3%82%bf" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.101（Lesson 5）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;リストの要素を順に取り出す場合、&lt;code&gt;for&lt;/code&gt;文を用います。&#10;以下の文で、&lt;code&gt;リスト&lt;/code&gt;の各要素を順番に取り出し、&lt;code&gt;変数&lt;/code&gt;に代入して&lt;code&gt;処理&lt;/code&gt;を行います。&#10;このように順に処理できるような仕組みをイテラブル（iterable; 反復可能）と呼びます。&#10;ほとんどのコレクションはイテラブルであり、同じように &lt;code&gt;for&lt;/code&gt; 文で処理できます。&lt;/p&gt;</description></item><item><title>第04講 再帰関数（1/2; 再帰関数の基礎）</title><link>https://ksubpb.github.io/2026/lesson04/</link><pubDate>Wed, 21 Oct 2026 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson04/</guid><description>&lt;h2 class="relative group"&gt;再帰関数&#10; &lt;div id="再帰関数" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e5%86%8d%e5%b8%b0%e9%96%a2%e6%95%b0" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;第04講では、再帰関数（recursive function）について学習します。&#10;再帰関数は、関数の中で自分自身を呼び出すことができる関数です。&lt;/p&gt;</description></item><item><title>行列</title><link>https://ksubpb.github.io/2026/lesson08/matrix/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson08/matrix/</guid><description>&lt;h2 class="relative group"&gt;行列（Matrix）とは&#10; &lt;div id="行列matrixとは" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e8%a1%8c%e5%88%97matrix%e3%81%a8%e3%81%af" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;行列は数学の概念で、数値を矩形状に並べたものです。&#10;行列はベクトルの拡張として考えることができます。&#10;ベクトルは1次元の配列でしたが、行列は2次元の配列です。&lt;/p&gt;</description></item><item><title>第05講 再帰関数（2/2; 探索）</title><link>https://ksubpb.github.io/2026/lesson05/</link><pubDate>Wed, 28 Oct 2026 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson05/</guid><description>&lt;h2 class="relative group"&gt;探索（再帰関数）&#10; &lt;div id="探索再帰関数" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e6%8e%a2%e7%b4%a2%e5%86%8d%e5%b8%b0%e9%96%a2%e6%95%b0" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;第05講では、データ構造を辿り、目的のデータを探索する再帰関数について学びます。&#10;リストの中から目的のファイルを探すプログラムや&#10;ディレクトリツリーの中のファイルやディレクトリを数えるプログラムなどを実装します。&lt;/p&gt;</description></item><item><title>第06講 クラス（1/2）</title><link>https://ksubpb.github.io/2026/lesson06/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson06/</guid><description>&lt;p&gt;今日の Python はオブジェクト指向プログラミング言語（OOP; Object Oriented Programming Language）になっています。&#10;他の人の書いたプログラムを読むときに、クラスやオブジェクト指向の書き方は、プログラムの理解に必須です。&#10;2回に分けて、Python でのオブジェクト指向プログラミングを学びます。&#10;1回目のこの講では、以下の内容を学びます。&lt;/p&gt;</description></item><item><title>第07講 クラス（2/2）</title><link>https://ksubpb.github.io/2026/lesson07/</link><pubDate>Wed, 18 Nov 2026 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson07/</guid><description>&lt;p&gt;今日の Python はオブジェクト指向プログラミング言語（OOP; Object Oriented Programming Language）になっています。&#10;他の人の書いたプログラムを読むときに、クラスやオブジェクト指向の書き方は、プログラムの理解に必須です。&#10;2回に分けて、Python でのオブジェクト指向プログラミングを学びます。&#10;2回目のこの講では、以下の内容を学びます。&lt;/p&gt;</description></item><item><title>第08講 機械学習（1/3; ベクトル、行列、可視化）</title><link>https://ksubpb.github.io/2026/lesson08/</link><pubDate>Wed, 25 Nov 2026 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson08/</guid><description>&lt;h2 class="relative group"&gt;概要&#10; &lt;div id="概要" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e6%a6%82%e8%a6%81" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;第08講では、機械学習などで用いられるベクトル、行列をPython の NumPy ライブラリでどのように扱うかを学びます。&lt;/p&gt;</description></item><item><title>第09講 機械学習（2/3; 教師あり学習）</title><link>https://ksubpb.github.io/2026/lesson09/</link><pubDate>Wed, 02 Dec 2026 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson09/</guid><description>&lt;h2 class="relative group"&gt;概要&#10; &lt;div id="概要" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e6%a6%82%e8%a6%81" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.372（Lesson 13）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;第09講では、機械学習のうち &lt;strong&gt;教師あり学習&lt;/strong&gt; について学びます。&#10;線形回帰による回帰と、決定木による分類を &lt;code&gt;scikit-learn&lt;/code&gt; で実装し、モデルの評価方法も学びます。&#10;以下の手順で &lt;code&gt;scikit-learn&lt;/code&gt; をインストールしておいてください。&lt;/p&gt;</description></item><item><title>📈 データの可視化</title><link>https://ksubpb.github.io/2026/lesson08/charts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson08/charts/</guid><description>基本的なグラフの描画方法について学びます</description></item><item><title>コマンドライン引数</title><link>https://ksubpb.github.io/2026/lesson01/sys.argv/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson01/sys.argv/</guid><description>&lt;h3 class="relative group"&gt;コマンドライン引数&#10; &lt;div id="コマンドライン引数" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%a9%e3%82%a4%e3%83%b3%e5%bc%95%e6%95%b0" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h3&gt;&#10;&lt;p&gt;スクリプトモードでPythonのコードを実行する際に、コマンドライン引数を受け取ることができます。&#10;コマンドライン引数とは、Pythonスクリプトを実行するときにスクリプトの後ろに指定する引数のことです。&#10;例えば、&lt;code&gt;python3 script.py arg1 arg2&lt;/code&gt; のようにスクリプト名の後にスペース区切りで指定します。&lt;/p&gt;</description></item><item><title>第10講 機械学習（3/3; 教師なし学習）</title><link>https://ksubpb.github.io/2026/lesson10/</link><pubDate>Wed, 09 Dec 2026 00:00:00 +0000</pubDate><guid>https://ksubpb.github.io/2026/lesson10/</guid><description>&lt;h2 class="relative group"&gt;概要&#10; &lt;div id="概要" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e6%a6%82%e8%a6%81" aria-label="アンカー"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;span class="flex" style="cursor: pointer;"&gt;&#10; &lt;span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"&gt;&#10; 教科書 p.372（Lesson 13）&#10; &lt;/span&gt;&#10;&lt;/span&gt;&#10;&#10;&#10;&lt;p&gt;第10講では、機械学習のうち &lt;strong&gt;教師なし学習&lt;/strong&gt; について学びます。&#10;\(k\)平均法と階層的クラスタリングによるクラスタリング、主成分分析による次元削減を &lt;code&gt;scikit-learn&lt;/code&gt; で実装します。&#10;&lt;code&gt;scikit-learn&lt;/code&gt; は第09講でインストールしたものを使います。&lt;/p&gt;</description></item></channel></rss>