Update README.md
Browse files
README.md
CHANGED
|
@@ -56,6 +56,65 @@ DistilGPT2 fine-tuned on HearthStone dataset for 200 epochs. \
|
|
| 56 |
Related to [dvitel/h0](https://huggingface.co/dvitel/h0) but with preprocessing which anonymizes classes and function variables (Local renaming). \
|
| 57 |
[dvitel/h2](https://huggingface.co/dvitel/h2) implements global renaming where all names are removed. Global renaming showed worse results compared to local renaming.
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
## Intended uses & limitations
|
| 60 |
|
| 61 |
HearthStone card code synthesis.
|
|
|
|
| 56 |
Related to [dvitel/h0](https://huggingface.co/dvitel/h0) but with preprocessing which anonymizes classes and function variables (Local renaming). \
|
| 57 |
[dvitel/h2](https://huggingface.co/dvitel/h2) implements global renaming where all names are removed. Global renaming showed worse results compared to local renaming.
|
| 58 |
|
| 59 |
+
Example of generated code with mistake on last eval iteration (EV L - gold labels, EV P - prediction):
|
| 60 |
+
```python
|
| 61 |
+
EV L class CLS0(MinionCard):
|
| 62 |
+
def __init__(self):
|
| 63 |
+
super().__init__('Darkscale Healer', 5, CHARACTER_CLASS.ALL, CARD_RARITY.COMMON, battlecry=Battlecry(Heal(2), CharacterSelector()))
|
| 64 |
+
def create_minion(self, v0):
|
| 65 |
+
return Minion(4, 5)
|
| 66 |
+
EV P class CLS0(MinionCard):
|
| 67 |
+
def __init__(self):
|
| 68 |
+
super().__init__('Darkscale Healer', 5, CHARACTER_CLASS.ALL, CARD_RARITY.COMMON, battlecry=Battlecry(Heal(2), CharacterSelector())
|
| 69 |
+
def create_minion(self, v0):
|
| 70 |
+
return Minion(4, 5)
|
| 71 |
+
|
| 72 |
+
EV L class CLS0(WeaponCard):
|
| 73 |
+
def __init__(self):
|
| 74 |
+
super().__init__('Fiery War Axe', 2, CHARACTER_CLASS.WARRIOR, CARD_RARITY.FREE)
|
| 75 |
+
def create_weapon(self, v0):
|
| 76 |
+
return Weapon(3, 2)
|
| 77 |
+
EV P class CLS0(WeaponCard):
|
| 78 |
+
def __init__(self):
|
| 79 |
+
super().__init__('Fiery War Axe', 2, CHARACTER_CLASS.WARRIOR, CARD_RARITY.FREE,
|
| 80 |
+
def create_weapon(self, v0):
|
| 81 |
+
return Weapon(3, 2)
|
| 82 |
+
|
| 83 |
+
EV L class CLS0(MinionCard):
|
| 84 |
+
def __init__(self):
|
| 85 |
+
super().__init__('Frostwolf Warlord', 5, CHARACTER_CLASS.ALL, CARD_RARITY.COMMON, battlecry=Battlecry(Give([Buff(ChangeAttack(Count(MinionSelector()))), Buff(ChangeHealth(Count(MinionSelector())))]), SelfSelector()))
|
| 86 |
+
def create_minion(self, v0):
|
| 87 |
+
return Minion(4, 4)
|
| 88 |
+
EV P class CLS0(MinionCard):
|
| 89 |
+
def __init__(self):
|
| 90 |
+
super().__init__('Frostwolf Warlord', 5, CHARACTER_CLASS.ALL, CARD_RARITY.COMMON, battlecry=Battlecry(Give([Buff(ChangeAttack(Count(MinionSelector(),), Buff(ChangeHealth(Count(MinionSelector()))))]),), SelfSelector()))
|
| 91 |
+
def create_minion(self, v0):
|
| 92 |
+
return Minion(4, 4)
|
| 93 |
+
|
| 94 |
+
EV L class CLS0(SpellCard):
|
| 95 |
+
def __init__(self):
|
| 96 |
+
super().__init__('Hellfire', 4, CHARACTER_CLASS.WARLOCK, CARD_RARITY.FREE)
|
| 97 |
+
def use(self, v0, v1):
|
| 98 |
+
super().use(v0, v1)
|
| 99 |
+
v2 = copy.copy(v1.other_player.minions)
|
| 100 |
+
v2.extend(v1.current_player.minions)
|
| 101 |
+
v2.append(v1.other_player.hero)
|
| 102 |
+
v2.append(v1.current_player.hero)
|
| 103 |
+
for v3 in v2:
|
| 104 |
+
v3.damage(v0.effective_spell_damage(3), self)
|
| 105 |
+
EV P class CLS0(SpellCard):
|
| 106 |
+
def __init__(self):
|
| 107 |
+
super().__init__('Hellfire', 4, CHARACTER_CLASS.WARLOCK, CARD_RARITY.FREE,
|
| 108 |
+
def use(self, v0, v1):
|
| 109 |
+
super().use(v0, v1)
|
| 110 |
+
v2 = copy.copy(v1.other_player.minions)
|
| 111 |
+
v2.extend(v1.current_player.minions)
|
| 112 |
+
for.append(v1.other_player.hero)
|
| 113 |
+
for.append(v1.other_player.hero)
|
| 114 |
+
for v3 in v2:
|
| 115 |
+
.damage(v0.effective_spell_damage(3), self)
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
## Intended uses & limitations
|
| 119 |
|
| 120 |
HearthStone card code synthesis.
|