From e5aec3f564a3511cbdd440789a0ecd287842d0c2 Mon Sep 17 00:00:00 2001 From: dutchcodes Date: Sun, 6 Jun 2021 20:59:21 +0200 Subject: [PATCH] Change int to float I believe this has to be changed to float as it gives an error on the needed range of 0-1. Only integers are allowed now, the default works. --- Python3Code/crowdsignals_ch3_outliers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python3Code/crowdsignals_ch3_outliers.py b/Python3Code/crowdsignals_ch3_outliers.py index 5d4d1f36..8e851a25 100755 --- a/Python3Code/crowdsignals_ch3_outliers.py +++ b/Python3Code/crowdsignals_ch3_outliers.py @@ -135,10 +135,10 @@ def main(): parser.add_argument('--K', type=int, default=5, help="Local Outlier Factor: K is the number of neighboring points considered") - parser.add_argument('--dmin', type=int, default=0.10, + parser.add_argument('--dmin', type=float, default=0.10, help="Simple distance based: dmin is ... ") - parser.add_argument('--fmin', type=int, default=0.99, + parser.add_argument('--fmin', type=float, default=0.99, help="Simple distance based: fmin is ... ") FLAGS, unparsed = parser.parse_known_args()