Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandros Koliousis committed May 2, 2019
1 parent 0ddc7a8 commit eead169
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public enum UpdateModel {

DEFAULT(0), WORKER(1), EAMSGD(2), SYNCHRONOUSEAMSGD(3), DOWNPOUR(4), HOGWILD(5), POLYAK_PUPPERT(6), SMA(7);
DEFAULT(0), WORKER(1), EAMSGD(2), SYNCHRONOUSEAMSGD(3), DOWNPOUR(4), HOGWILD(5), POLYAK_RUPPERT(6), SMA(7);

private int id;

Expand All @@ -22,7 +22,7 @@ public String toString () {
case 3: return "SYNCHRONOUSEAMSGD";
case 4: return "DOWNPOUR";
case 5: return "HOGWILD";
case 6: return "POLYAK-PUPPERT";
case 6: return "POLYAK-RUPPERT";
case 7: return "SMA";
default:
throw new IllegalArgumentException ("error: invalid update model type");
Expand All @@ -37,7 +37,7 @@ public static UpdateModel fromString(String model) {
else if (model.toUpperCase().equals("SYNCHRONOUSEAMSGD")) return SYNCHRONOUSEAMSGD;
else if (model.toUpperCase().equals("DOWNPOUR")) return DOWNPOUR;
else if (model.toUpperCase().equals("HOGWILD")) return HOGWILD;
else if (model.toUpperCase().equals("POLYAK-PUPPERT")) return POLYAK_PUPPERT;
else if (model.toUpperCase().equals("POLYAK-RUPPERT")) return POLYAK_RUPPERT;
else if (model.toUpperCase().equals("SMA")) return SMA;
else
throw new IllegalArgumentException (String.format("error: invalid update model: %s", model));
Expand Down

0 comments on commit eead169

Please sign in to comment.