Skip to content

Instantly share code, notes, and snippets.

We can't make this file beautiful and searchable because it's too large.
,member_id
0,4718592
1,1
2,2
3,3
4,196345861
5,177995782
6,188219397
7,17
8,197918748
import numpy as np
import pandas as pd
from pandas.errors import EmptyDataError
from collections import defaultdict
import random
import time
import datetime
import math
level 1 , 9 states
level 2 , 106 states
level 3 , 1191 states
level 4 , 12226 states
level 5 , 111120 states
{"UD": "0.3071", "UD'": "0.0751", "UD2": "0.1538", "UF": "0.2657", "UF'": "0.1559", "UF2": "0.0932", "UB": "0.2564", "UB'": "0.2916", "UB2": "0.0494", "UL": "0.3022", "UL'": "0.0764", "UL2": "0.2896", "UR": "0.1148", "UR'": "0.0496", "UR2": "0.0714", "UM": "0.1802", "UM'": "0.1794", "UM2": "0.1209", "Ur": "0.3005", "Ur'": "0.2882", "Ur2": "0.1642", "U'D": "0.0478", "U'D'": "0.1393", "U'D2": "0.1223", "U'F": "0.2033", "U'F'": "0.0480", "U'F2": "0.1585", "U'B": "0.4330", "U'B'": "0.3097", "U'B2": "0.2104", "U'L": "0.3079", "U'L'": "0.2998", "U'L2": "0.3098", "U'R": "0.1083", "U'R'": "0.0498", "U'R2": "0.0498", "U'M": "0.0805", "U'M'": "0.1401", "U'M2": "0.0704", "U'r": "0.0887", "U'r'": "0.1217", "U'r2": "0.1361", "U2D": "0.2624", "U2D'": "0.2892", "U2D2": "0.3059", "U2F": "0.1922", "U2F'": "0.1962", "U2F2": "0.2632", "U2B": "0.2279", "U2B'": "0.3068", "U2B2": "0.2597", "U2L": "0.3095", "U2L'": "0.2951", "U2L2": "0.3089", "U2R": "0.1190", "U2R'": "0.0500", "U2R2": "0.0665", "U2M": "0.1678", "U2M'": "0.0495", "U