Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8914785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:48:49+00:00 2026-06-15T04:48:49+00:00

I see in the documentation, there is max_iter option in sklearn.svm.SVC class constructor http://scikit-learn.org/dev/modules/generated/sklearn.svm.SVC.html#sklearn.svm.SVC

  • 0

I see in the documentation, there is max_iter option in sklearn.svm.SVC class constructor
http://scikit-learn.org/dev/modules/generated/sklearn.svm.SVC.html#sklearn.svm.SVC

But whenever I try to use it, I’ll get an error message like this

svc = svm.SVC(kernel=kernel_option[kernel_gene], degree=degree_value, gamma=gamma_value, max_iter = 1000)
TypeError: __init__() got an unexpected keyword argument 'max_iter'

Here is my code:

svc = svm.SVC(kernel=kernel_option[kernel_gene], degree=degree_value, gamma=gamma_value, max_iter = 1000)

Since kernel_option, degree and gamma value is alright. What’s wrong here? Do I have some kind of syntax error or what?

EDIT:
@Ogrissel has found the problem. I use 0.12.1, while the documentation is for 1.3
Since 1.2.1 is the most recent stable, is there any solution (define max_iter) for sklearn.svm.SVC?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:48:51+00:00Added an answer on June 15, 2026 at 4:48 am

    This is the development version of the documentation that matches the current state of the master branch on the git repository. You are likely running a released version of scikit-learn. Please use the documentation matching your version of scikit-learn or build scikit-learn from the source repo instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As I see in documentation there is a possibility to create gist index which
I can see in the documentation that there are ways to clear the badge
If I use http://api.rubyonrails.org/ to look up ActionView::Helpers::UrlHelper#url_for (see: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-url_for ) it tells me:
I've developed a webservice and rightfully my users would like to see documentation. I'd
I don't see any documentation or core code to specifically address Insert ... On
I'm trying to run the example Gearman worker from their documentation (see below), but
I am working on Dropbox. I see the documentation. This is my code to
Reading about the Dispose pattern , I see the documentation repeatedly refer to cleaning
As you can see from the documentation the way to start an Activity to
In documentation code I see some things like this: /* * @(#)File.java 1.142 09/04/01

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.