{ "cells": [ { "cell_type": "markdown", "id": "dc4cfd5d-c4ca-4ce7-8aa9-63218e43d29a", "metadata": {}, "source": [ "# We are going to be making 2 exmaples. \n", "Since card text plays such an important role as to how strong a card is, we are going to be seperating 2 forms of evaluating how card price is determined. \n", "- 1st: we are going to be encoding features for linear regression. So this will look at text features such as \"blocked\", \"upkeep\", \"legendary\" single words withint he oracle text of the card. \n", "This option takes every word and makes it into its own feature. Which Could show which cards have the most prominent key words within each of them. \n", "- 2nd: We are going to be using deep learning / modern ai in order to catch more semantic meanings of cards. We will be doing this with the help of sentence_transformers." ] }, { "cell_type": "code", "execution_count": 2, "id": "99b62231-fa13-4f39-b0e4-e79035bbfb08", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Dataset shape: (7644, 7)\n" ] }, { "data": { "text/html": [ "
| \n", " | cmc | \n", "rarity | \n", "game_changer | \n", "oracle_text | \n", "power_num | \n", "toughness_num | \n", "usd_cast | \n", "
|---|---|---|---|---|---|---|---|
| 0 | \n", "4.0 | \n", "mythic | \n", "False | \n", "Other Pirates you control get +1/+1.\\nAt the b... | \n", "3.0 | \n", "3.0 | \n", "0.38 | \n", "
| 1 | \n", "2.0 | \n", "rare | \n", "False | \n", "Each opponent can't cast noncreature spells wi... | \n", "2.0 | \n", "2.0 | \n", "0.38 | \n", "
| 2 | \n", "4.0 | \n", "rare | \n", "False | \n", "First strike (This creature deals combat damag... | \n", "3.0 | \n", "4.0 | \n", "0.42 | \n", "
| 3 | \n", "3.0 | \n", "rare | \n", "False | \n", "Vigilance\\nWhenever you cast an Adventure spel... | \n", "3.0 | \n", "4.0 | \n", "0.21 | \n", "
| 4 | \n", "4.0 | \n", "rare | \n", "False | \n", "Flying\\nWhenever Scarlet Witch deals combat da... | \n", "3.0 | \n", "3.0 | \n", "9.17 | \n", "