Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions gm11.py
Original file line number Diff line number Diff line change
@@ -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()