HeaRTDroid

HeaRTDroid is a rule-based inference engine both for Android mobile devices, and desktop solutions

User Tools

Site Tools


pub:software:heartdroid:tutorials:statistics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pub:software:heartdroid:tutorials:statistics [2017/01/23 09:06]
admin [Use case]
pub:software:heartdroid:tutorials:statistics [2019/04/10 06:54] (current)
Line 37: Line 37:
 java -cp haquna.jar:​. haquna.HaqunaMain --console stock-seller-simple.hqn java -cp haquna.jar:​. haquna.HaqunaMain --console stock-seller-simple.hqn
 </​code>​ </​code>​
 +After running the script you should get the output that looks similar to the following one:
 +<​code>​
 +Attribute: real_profit_ratio ​ = 0.8099999999999998 ​ cf = 1.0
 +Attribute: sell_price ​ = 200.0  cf = 1.0
 +Attribute: price_trend ​ = null  cf = 1.0
 +Attribute: price  = 211.0  cf = 1.0
 +Attribute: sell  = true  cf = 1.0
 +Attribute: buy_price ​ = 100.0  cf = 1.0
 +Attribute: total_profit ​ = 100.0  cf = 1.0
 +Attribute: profit_ratio ​ = 2.11  cf = 1.0
 +Attribute: desired_profit_ratio ​ = 1.3  cf = 1.0
 +</​code>​
 +Note, that the ''​sell''​ attribute is set to true, so the item was sold, and the ''​sell_price''​ is set to 200, which means that the system sold the item immediately after the price exceeded the desired profit.
  
 To run the second script use the following command: To run the second script use the following command:
Line 42: Line 55:
 java -cp haquna.jar:​. haquna.HaqunaMain --console stock-seller-trend.hqn java -cp haquna.jar:​. haquna.HaqunaMain --console stock-seller-trend.hqn
 </​code>​ </​code>​
 +
 +After running the script you should get the output that looks similar to the following one:
 +<​code>​
 +Attribute: real_profit_ratio ​ = 0.8099999999999998 ​ cf = 1.0
 +Attribute: sell_price ​ = null  cf = 1.0
 +Attribute: price_trend ​ = 1.3621621621621627 ​ cf = 1.0
 +Attribute: price  = 211.0  cf = 1.0
 +Attribute: sell  = false  cf = 1.0
 +Attribute: buy_price ​ = 100.0  cf = 1.0
 +Attribute: total_profit ​ = 0.0  cf = 1.0
 +Attribute: profit_ratio ​ = 2.11  cf = 1.0
 +Attribute: desired_profit_ratio ​ = 1.3  cf = 1.0
 +</​code>​
 +
 +Note, that the system did not sell the item despite the price is high above the desired profit ratio.
 +This is because the price is still growing.
  
 In the second script, try to manipulate with values of price over time.  In the second script, try to manipulate with values of price over time. 
pub/software/heartdroid/tutorials/statistics.1485162412.txt.gz ยท Last modified: 2019/04/10 06:54 (external edit)