diff --git a/README.md b/README.md index 50a4ffdf..ddf11304 100644 --- a/README.md +++ b/README.md @@ -587,13 +587,111 @@ trainer.fit( ) ``` -**7. Tabular with a multi-target loss** +**7. A two-tower model** + +This is a popular model in the context of recommendation systems. Let's say we +have a tabular dataset formed my triples (user features, item features, +target). We can create a two-tower model where the user and item features are +passed through two separate models and then "fused" via a dot product. + +
+
+
-
+
\n", - " | MedInc | \n", - "HouseAge | \n", - "AveRooms | \n", - "AveBedrms | \n", - "Population | \n", - "AveOccup | \n", - "Latitude | \n", - "Longitude | \n", - "MedHouseVal | \n", - "
---|---|---|---|---|---|---|---|---|---|
0 | \n", - "8.3252 | \n", - "41.0 | \n", - "6.984127 | \n", - "1.023810 | \n", - "322.0 | \n", - "2.555556 | \n", - "37.88 | \n", - "-122.23 | \n", - "4.526 | \n", - "
1 | \n", - "8.3014 | \n", - "21.0 | \n", - "6.238137 | \n", - "0.971880 | \n", - "2401.0 | \n", - "2.109842 | \n", - "37.86 | \n", - "-122.22 | \n", - "3.585 | \n", - "
2 | \n", - "7.2574 | \n", - "52.0 | \n", - "8.288136 | \n", - "1.073446 | \n", - "496.0 | \n", - "2.802260 | \n", - "37.85 | \n", - "-122.24 | \n", - "3.521 | \n", - "
3 | \n", - "5.6431 | \n", - "52.0 | \n", - "5.817352 | \n", - "1.073059 | \n", - "558.0 | \n", - "2.547945 | \n", - "37.85 | \n", - "-122.25 | \n", - "3.413 | \n", - "
4 | \n", - "3.8462 | \n", - "52.0 | \n", - "6.281853 | \n", - "1.081081 | \n", - "565.0 | \n", - "2.181467 | \n", - "37.85 | \n", - "-122.25 | \n", - "3.422 | \n", - "