prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  AttributeError: 'PredictTransactionOutputData' object has no attribute 'predicted_values'
  **Describe the bug**
  After running predict.py in the example mindsdb/docs/examples/time_series/ I got the following AttributeError:
  
  ```
  Traceback (most recent call last):
    File "predict.py", line 12, in <module>
      print(result.predicted_values)
  AttributeError: 'PredictTransactionOutputData' object has no attribute 'predicted_values'
  ```
  
  **To Reproduce**
  Steps to reproduce the behavior:
  1. First run train.py, with python3 train.py
  2. When training is finished, run predict.py with python3 predict.py
  3. See error
  
  **Expected behavior**
  I expected to see the predicted values.
  
  **Desktop (please complete the following information):**
   - OS: Ubuntu 18.04.2 LTS
  - mindsdb 1.0.5
  - pip 19.1
  - python 3.6.7
  - virtualenv 15.1.0
  - urllib3 1.24
  
  **Additional context**
  Before the Traceback I got the following warning many times:
  
  ```
  WARNING:mindsdb-logger-core-logger:libs/backends/ludwig.py:141 - ('Missing previous predicted values for output column: '
   'Main_Engine_Fuel_Consumption_MT_day, these should be included in your input '
   'under the name: previous_Main_Engine_Fuel_Consumption_MT_day')
  ```
  Finally, I've installed mindsdb using pip3 inside a virtualenvironment.
  
  
  </issue>
  <code>
  [start of docs/examples/time_series/predict.py]
  1 """
  2 
  3 """
  4 
  5 from mindsdb import Predictor
  6 
  7 # Here we use the model to make predictions (NOTE: You need to run train.py first)
  8 result = Predictor(name='fuel').predict(when_data = 'fuel_predict.csv')
  9 
  10 # you can now print the results
  11 print('The predicted main engine fuel consumption')
  12 print(result.predicted_values)
  [end of docs/examples/time_series/predict.py]
  [start of docs/examples/nlp/predict.py]
  1 from mindsdb import *
  2 
  3 mdb = Predictor(name='real_estate_desc')
  4 
  5 # Here we use the model to make predictions (NOTE: You need to run train.py first)
  6 result = mdb.predict(
  7     when={
  8         "description": """A true gem
  9  rooms: 2
  10   bathrooms: 0
  11   neighboorhood: thowsand_oaks
  12    amenities: parking
  13   area: 84.0291068642868
  14   condition: great !
  15         """
  16     }
  17 )
  18 
  19 # you can now print the results
  20 print('The predicted number of rooms')
  21 print(result.predicted_values)
  22
  [end of docs/examples/nlp/predict.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/docs/examples/nlp/predict.py b/docs/examples/nlp/predict.py
  --- a/docs/examples/nlp/predict.py
  +++ b/docs/examples/nlp/predict.py
  @@ -18,4 +18,4 @@
   
   # you can now print the results
   print('The predicted number of rooms')
  -print(result.predicted_values)
  +print(result)
  diff --git a/docs/examples/time_series/predict.py b/docs/examples/time_series/predict.py
  --- a/docs/examples/time_series/predict.py
  +++ b/docs/examples/time_series/predict.py
  @@ -9,4 +9,5 @@
   
   # you can now print the results
   print('The predicted main engine fuel consumption')
  -print(result.predicted_values)
  \ No newline at end of file
  +for row in result:
  +  print(row)
  
verification_info: {"golden_diff": "diff --git a/docs/examples/nlp/predict.py b/docs/examples/nlp/predict.py\n--- a/docs/examples/nlp/predict.py\n+++ b/docs/examples/nlp/predict.py\n@@ -18,4 +18,4 @@\n \n # you can now print the results\n print('The predicted number of rooms')\n-print(result.predicted_values)\n+print(result)\ndiff --git a/docs/examples/time_series/predict.py b/docs/examples/time_series/predict.py\n--- a/docs/examples/time_series/predict.py\n+++ b/docs/examples/time_series/predict.py\n@@ -9,4 +9,5 @@\n \n # you can now print the results\n print('The predicted main engine fuel consumption')\n-print(result.predicted_values)\n\\ No newline at end of file\n+for row in result:\n+  print(row)\n", "issue": "AttributeError: 'PredictTransactionOutputData' object has no attribute 'predicted_values'\n**Describe the bug**\r\nAfter running predict.py in the example mindsdb/docs/examples/time_series/ I got the following AttributeError:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"predict.py\", line 12, in <module>\r\n    print(result.predicted_values)\r\nAttributeError: 'PredictTransactionOutputData' object has no attribute 'predicted_values'\r\n```\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. First run train.py, with python3 train.py\r\n2. When training is finished, run predict.py with python3 predict.py\r\n3. See error\r\n\r\n**Expected behavior**\r\nI expected to see the predicted values.\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: Ubuntu 18.04.2 LTS\r\n- mindsdb 1.0.5\r\n- pip 19.1\r\n- python 3.6.7\r\n- virtualenv 15.1.0\r\n- urllib3 1.24\r\n\r\n**Additional context**\r\nBefore the Traceback I got the following warning many times:\r\n\r\n```\r\nWARNING:mindsdb-logger-core-logger:libs/backends/ludwig.py:141 - ('Missing previous predicted values for output column: '\r\n 'Main_Engine_Fuel_Consumption_MT_day, these should be included in your input '\r\n 'under the name: previous_Main_Engine_Fuel_Consumption_MT_day')\r\n```\r\nFinally, I've installed mindsdb using pip3 inside a virtualenvironment.\r\n\n", "before_files": [{"content": "\"\"\"\n\n\"\"\"\n\nfrom mindsdb import Predictor\n\n# Here we use the model to make predictions (NOTE: You need to run train.py first)\nresult = Predictor(name='fuel').predict(when_data = 'fuel_predict.csv')\n\n# you can now print the results\nprint('The predicted main engine fuel consumption')\nprint(result.predicted_values)", "path": "docs/examples/time_series/predict.py"}, {"content": "from mindsdb import *\n\nmdb = Predictor(name='real_estate_desc')\n\n# Here we use the model to make predictions (NOTE: You need to run train.py first)\nresult = mdb.predict(\n    when={\n        \"description\": \"\"\"A true gem\n rooms: 2\n  bathrooms: 0\n  neighboorhood: thowsand_oaks\n   amenities: parking\n  area: 84.0291068642868\n  condition: great !\n        \"\"\"\n    }\n)\n\n# you can now print the results\nprint('The predicted number of rooms')\nprint(result.predicted_values)\n", "path": "docs/examples/nlp/predict.py"}]}