original_docstring: 
  		Soft inlier count for a given line and a given set of points.
  
  		slope -- slope of the line
  		intercept -- intercept of the line
  		x -- vector of x values
  		y -- vector of y values
  		
docstring: Soft inlier count for a given line and a given set of points.
docstring_tokens: Soft inlier count for a given line and a given set of points .
code: def __soft_inlier_count(self, slope, intercept, x, y):
  		'''
  		Soft inlier count for a given line and a given set of points.
  
  		slope -- slope of the line
  		intercept -- intercept of the line
  		x -- vector of x values
  		y -- vector of y values
  		'''
  
  		# point line distances
  		dists = torch.abs(slope * x - y + intercept)
  		dists = dists / torch.sqrt(slope * slope + 1)
  
  		# soft inliers
  		dists = 1 - torch.sigmoid(self.inlier_beta * (dists - self.inlier_thresh)) 
  		score = torch.sum(dists)
  
  		return score, dists
code_tokens: def __soft_inlier_count ( self , slope , intercept , x , y ) : dists = torch . abs ( slope * x - y + intercept ) dists = dists / torch . sqrt ( slope * slope + 1 ) dists = 1 - torch . sigmoid ( self . inlier_beta * ( dists - self . inlier_thresh ) ) score = torch . sum ( dists ) return score , dists
short_docstring: Soft inlier count for a given line and a given set of points.
short_docstring_tokens: Soft inlier count for a given line and a given set of points .
comment: '''
  		Soft inlier count for a given line and a given set of points.
  
  		slope -- slope of the line
  		intercept -- intercept of the line
  		x -- vector of x values
  		y -- vector of y values
  		'''$SEP$# point line distances$SEP$# soft inliers