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
2 changes: 2 additions & 0 deletions sklearn_porter/estimator/classifier/SVC/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ def export(self, class_name, method_name, export_data=False,
self.gamma = self.params['gamma']
if self.gamma == 'auto':
self.gamma = 1. / self.n_features
elif self.gamma == 'scale':
self.gamma = est._gamma # computed value of 1 / (n_features * X.var())
self.gamma = self.repr(self.gamma)

# Coefficient and degree:
Expand Down