예제 #1
0
import sys
sys.path.append('../ccmsuite')
import ccm
ccm.run('accuracy_v2',
        5,
        N=[1000],
        states=['b', 'bv', 'bp', 'bvp'],
        S=[500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000])
예제 #2
0
import ccm
ccm.run('paired',20,threshold=[-1.25,-1.75,-2.25,-2.75])
예제 #3
0
import ccm
ccm.run('paired',20,threshold=[-1.8,-1.9,-2,-2.1,-2.2],latency=[0.3,0.325,0.35,0.375,0.4])
예제 #4
0
import sys
sys.path.append('.')

import ccm
ccm.run('cliff/discrete_cliff', 10, goal_reward=[-1, 0, 1, 10, 100])
예제 #5
0
import ccm
ccm.run('paired',20,threshold=-2,latency=[0.3,0.35,0.4,0.45])
import ccm
ccm.run('paired',20,threshold=[-1,-1.5,-2,-2.5])
예제 #7
0
import ccm
ccm.run('paired',
        20,
        threshold=[-1.6, -1.7],
        latency=[0.3, 0.325, 0.35, 0.375, 0.4])
import ccm
ccm.run('paired',50)
예제 #9
0
import sys
sys.path.append('../ccmsuite')
import ccm
ccm.run('accuracy_v',
        5,
        N=[10, 20, 50, 100, 200, 500, 1000, 2000],
        states=['b', 'bv', 'bp', 'bvp'])
예제 #10
0
import ccm
ccm.run('paired', 50)
예제 #11
0
import ccm
ccm.run('paired.py', 50)
import sys
sys.path.append('.')

import ccm
ccm.run('cliff/discrete_cliff',10, goal_reward=[-1, 0, 1, 10, 100])
예제 #13
0
파일: sim_2.py 프로젝트: sandguine/ccmsuite
import ccm
ccm.run('paired', 20, threshold=[-1, -1.5, -2, -2.5])
예제 #14
0
df.party = df.party.apply(lambda x: "democrat" if x in {
    "democratic-farmer-labor", "democratic-npl", "democrat&republican"
} else x)

#### Data processing ####
print()
print("Upper Chammber State Legislature Elections")
UPPER_OFFICES = ["State Senator", "State Senate"]
upper_df = df[df["office"].isin(UPPER_OFFICES)]
upper_name = "upper-chammber-state-legislature-elections-2018"
upper_exclusion_dict = {
    "No general election": {"VA", "MS", "LA", "NJ", "NM", "SC"},
    "Multi-member districts": {"VT"},
    "Unicameral exclusion": {"NE"},
}
ccm.run(upper_df, upper_name, fix_upper_chamber, upper_exclusion_dict)

print()
print("Lower Chamber State Legislature Elections")
LOWER_OFFICES = [
    "State Representative",
    "State Legislature",
    "State House Delegate",
    "State Representative Pos. 1",
    "State Representative Pos. 2",
    "State Assembly Member",
    "State House, Representative A",
    "State House, Representative B",
    "General Assembly",
    "State Assembly Representative",
    "House of Delegates Member",
import ccm
ccm.run('paired',20,threshold=[-1.6,-1.7],latency=[0.3,0.325,0.35,0.375,0.4])
예제 #16
0
파일: sim_2.py 프로젝트: KoreyMac54/SGOMS
import ccm

ccm.run("paired", 20, threshold=[-1, -1.5, -2, -2.5])
import ccm
ccm.run('paired',20,threshold=-2,latency=[0.3,0.35,0.4,0.45])