diff --git a/gm11.py b/gm11.py new file mode 100644 index 0000000..4232f0e --- /dev/null +++ b/gm11.py @@ -0,0 +1,21 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +import sys +import json +from grey_theory import GreyTheory + +# GM11 +gm11 = GreyTheory().gm11 +gm11.alpha = 0.5 +gm11.convolution = True +gm11.stride = 1 +gm11.length = 4 + +numbers = json.loads(sys.argv[1]) +print numbers + +for (i, num) in enumerate(numbers): + gm11.add_pattern(num, str(i)) + +gm11.forecast() +gm11.print_forecasted_results() \ No newline at end of file