I am using sklearn library to train the default SVM classifier on a bunch of data. My data has roughly 30 features. But I realize some of these features are "more important" than others. For example, I want the change in features 1, 2, and 3 to greatly impact the learning process, whereas, features 4 through 25 are useful information, but not as critical.   If I just multiply the numbers in features 1 to 3 by say, 100, it won't make much difference because I believe the algorithm normalizes the features anyway. So my question is, how can I give a weight to the features in an SVM classifier, so that some of them influence the learning and prediction more than others?  Here's the very crude version of the code I'm using:  clf = SVC(probability=True, gamma=0.1, C=1)) data = np.array([1, 4, 1, 6, 2, 5, 7, 2, ... ]) target = np.array([0, 1, 0, 0, 1, ... ]) clf.fit(data, target)
I'm building an object detector using HOG features and linear SVM. Some of the regions of the object are more "distinctive" so I would like to give more weight to the features extracted from those regions. (e.g. imagine we want to detect between mugs and glasses, then the most "distinctive" part is the mug's handle)  How could I do this? For sure there should be a more intelligent way than just replicating the features of those "distinctive" regions.
Define ≡ in this situation? Why does an error appear every time I try to open the Ubuntu Software Center? There is a glitch on the Ubuntu Software Center and whenever I open it an error appears and it keeps loading and never opens.  Why does this happen?  I have installed Ubuntu 13.04 on a disk and partitioned it.  Please help me and ask for excess information if you need it.  If you know of any duplicates please show me them!!  I get the following error in a terminal  SystemError: E:Type '&lt;!DOCTYPE' is not known on line 1 in source list /etc/apt/sources.list.d/medibuntu.list   The /etc/apt/sources.list.d/medibuntu.list file contains a HTML document. In Greek, λογικοφανής is a word that describes a person who spits out seemingly logical statements. It often has a negative connotation as it is targeted towards people who tend to fool the public with supposedly beautifully-constructed thoughts that sound convincing in our ears but are not necessarily accurate. The first word that comes to mind is deceptive, but it is not quite what I look for. Any thoughts? \includegraphics: Dots in filename \includegraphics cannot handle filenames that contain more than the one dot, separating the filename from the extension. Apparently it uses everything after the first dot as extension and then, of course, complains about an unknown graphics extension.  This is annoying as I very often have filenames that contain parameter values, e.g. plot_a0.4_b0.6.pdf.  Is there a way to teach LaTeX to interpret only the string behind the last dot as extension? Is there a quick way to reset a .blend files windows and settings to default Let $P,Q$ real $n\times n$ matrices  such that $P^2=P$ , $Q^2=Q$ and $I-P-Q$ is an invertible matrix.  Prove that $P$ and $Q$ have the same rank.  Some help with this please , happy year and thanks. Space after LaTeX commands I have a definition:  \newcommand{\arnold}{Arnold Schwarzenegger}   When I refer to it by:  \arnold is a   it is rendered as:   Arnold Schwarzeneggeris a    In order to have a space in front of "is" I would need to write  \arnold\ is a   Is there some other shorter way? Direction of $d\mathbf{l}$ Was Louis stalked days in advance too? Transferring Lyx Keyboard Shortcuts I recently updated my version of Lyx from 1.6.7 to 2.0.6. I would like to transfer my old keyboard shortcuts to this new version, but I am having difficulty because I was inconsistent with the way that I set them up:   Some were defined in the specified .bind file,  but others were modified in the lyx preferences menu.   I found that when importing my old .bind file into this updated version of lyx, it imported the keyboard shortcuts that were in the .bind file, but not those that I had added in the preferences menu.  Does anyone know if these keyboard shortcuts that were added via the preferences menu are stored in another .bind file somewhere in the lyx directory? Has anyone else successfully transferred keyboard shortcuts that had been implimented in the preferences menu? I'm trying to show that  $$\delta\big(f(x)\big) = \sum_{i}\frac{\delta(x-a_{i})}{\left|{\frac{df}{dx}(a_{i})}\right|}$$  Where $a_{i}$ are the roots of the function $f(x)$. I've tried to proceed by using a dummy function $g(x)$ and carrying out:  $$\int_{-\infty}^{\infty}dx\,\delta\big(f(x)\big)g(x)$$  Then making the coordinate substitution $u$ = $f(x)$ and integrating over $u$. This seems to be on the right track, but I'm unsure where the absolute value comes in in the denominator, and also why it becomes a sum.  $$\int_{-\infty}^{\infty}\frac{du}{\frac{df}{dx}}\delta(u)g\big(f^{-1}(u)\big) = \frac{g\big(f^{-1}(0)\big)}{\frac{df}{dx}\big(f^{-1}(0)\big)}$$  Can any one shed some light? Wikipedia just states the formula and doesn't actually show where it comes from. Smoke Generator does not work When I try to run the smoke simulator in Blender 2.62 I get no smoke at all. When I attempt to render, the only output is a black screen. What am I doing wrong here that is making the smoke simulation not render?  Is it a mistake I made, or a problem with Blender version 2.62? Proving $1-\exp(-4x^2/ \pi) \ge \text{erf}(x)^2$ This is a follow-up to  question. I came across a tighter potential bound and checked it numerically for $0\le x\le 5$. I think it holds for all positive $x$, can anyone see a proof?  $$1-\exp(-4x^2/ \pi) \ge \text{erf}(x)^2$$  Note: using analysis for previous  you can show that $1-\exp(-k x^2)$ is an upper bound on $\text{erf}(x)^2$ for $k=2$ and a lower bound when $k=1$. The factor $k=4/\pi$ comes out when numerically searching for tightest upper bound. Not only does it seem to give an upper bound, but it also tracks $\text{erf}(x)^2$ very closely.  Dashed graph below is $\text{erf}(x)^2$, red is $1-\exp(-k x^2)$ for $k=4/\pi$, other two graphs are for $k=1$ and $k=2$ What is scientific mind? How to create a sub array from another array in Java? Where can I find people for hire with LaTeX skills and designer skills? Prime factors + number of Divisors I know that one way to find the number of divisors is to find the prime factors of that number and add one to all of the powers and then multiply them together so for example  $$555 = 3^1 \cdot 5^1 \cdot 37^1$$  therefore the number of divisors = $(1+1)(1+1)(1+1) = 2 \cdot 2 \cdot 2 = 8$  What I do not know (and can't seem to find when I look) is WHY this relationship exists or a formula which shows its proof.  Has anyone seen such a formula? Matlab arrays operation In several different contexts we invoke the  to justify whatever statistical method we want to adopt (e.g., approximate the binomial distribution by a normal distribution). I understand the technical details as to why the theorem is true but it just now occurred to me that I do not really understand the intuition behind the central limit theorem.  So, what is the intuition behind the central limit theorem?   Layman explanations would be ideal. If some technical detail is needed please assume that I understand the concepts of a pdf, cdf, random variable etc but have no knowledge of convergence concepts, characteristic functions or anything to do with measure theory. The company I work for makes hardware that communicates to the computer though a serial port. Third party companies write software that communicates with our hardware.   There are times when I need to diagnose our hardware. However, a third party software app connects to the serial port when Windows starts up, blocking any other connection. I don't know the name of this application/service and it's not always the same one.  Is there any way to either:   Find the name/pid of the app/service that is currently using a given serial port or Steal the serial port connection from another app.   vb.net preferably, but I'll take a language agnostic answer as well.