「differential of cosine similarity」でぐぐったら出てきた2023/9/6 0:21:00 https://math.stackexchange.com/questions/1923613/partial-derivative-of-cosine-similarity