mirror of
https://github.com/13hannes11/UU_NCML_Project.git
synced 2024-09-03 20:50:59 +02:00
rename german analysis to match uk
This commit is contained in:
@@ -12,12 +12,12 @@ grid_h = 11 # Grid height
|
|||||||
grid_w = 11 # Grid width
|
grid_w = 11 # Grid width
|
||||||
radius = 2 # Neighbour radius
|
radius = 2 # Neighbour radius
|
||||||
step = 0.5
|
step = 0.5
|
||||||
ep = 300 # No of epochs
|
ep = 100 # No of epochs
|
||||||
|
|
||||||
# Load data
|
# Load data
|
||||||
dataset = ld.load_german_data()
|
dataset = ld.load_german_data()
|
||||||
|
|
||||||
years = {17:2005, 18:2013, 19:2017}
|
period_to_compass_year = {17:2005, 18:2013, 19:2017}
|
||||||
|
|
||||||
for period, df in dataset.items():
|
for period, df in dataset.items():
|
||||||
|
|
||||||
@@ -30,5 +30,5 @@ for period, df in dataset.items():
|
|||||||
model = va.train_model(X, grid_h, grid_w, radius, step, ep)
|
model = va.train_model(X, grid_h, grid_w, radius, step, ep)
|
||||||
|
|
||||||
# Predict and visualize output
|
# Predict and visualize output
|
||||||
va.predict(model, data, grid_h, grid_w, pc.get_compass_parties(year=years[period], country='de'))
|
va.predict(model, data, grid_h, grid_w, pc.get_compass_parties(year=period_to_compass_year[period], country='de'))
|
||||||
|
|
||||||
Reference in New Issue
Block a user