When there are many more failures than successes should I let classes be equal in SVM? I have about 5544 runs where I am trying to classify it as failure or success. Here the number of runs that lead to failure is only 64 and rest is sucess. In that case when I try to use SVM should I make the number of classes equal? Will this affect the results?
Highly unbalanced test data set and balanced training data in classification I have a training set with about 3000 positive instances and 3000 negative instances. But my test data set is pretty much un-balanced. The positive set only has 50 instances and negative has 1500 instances.This causes the precision very low. Are there any approaches to solve this problem? I use SVM to build classifier.
How do I post code in chat? I would like to be able to post code in chat. I know that I can post inline snippets of code by using backticks, but I don't know how to post blocks of code, with the entire chat message formatted as code, and indentation respected. I am aware of . After reading the comments, I found out that I could format in "fixed width", but I can't see a "fixed width" button anywhere. What should I do? GParted can't resize partition, but unallocated partition is available Proof that the set of irrational numbers is dense in reals Cannot detect wireless driver intel ac wireless 9560 [logs included] Currently using Ubuntu 18.04, and my wireless driver is not being detected.  I've included a .  $ dmesg | grep iwl [    6.212724] Loading modules backported from iwlwifi [    6.212724] iwlwifi-stack-public:master:6988:0d8892f2 [    6.224583] iwlwifi 0000:00:14.3: enabling device (0000 -&gt; 0002) [    6.229811] iwlwifi 0000:00:14.3: Direct firmware load for iwl-dbg-cfg.ini failed with error -2 [    6.230540] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-39.ucode failed with error -2 [    6.230547] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-38.ucode failed with error -2 [    6.230552] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-37.ucode failed with error -2 [    6.230557] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-36.ucode failed with error -2 [    6.230562] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-35.ucode failed with error -2 [    6.236670] iwlwifi 0000:00:14.3: loaded firmware version 34.0.0 op_mode iwlmvm [    6.248314] iwlwifi 0000:00:14.3: Detected Intel(R) Dual Band Wireless AC 9560, REV=0x318 [    7.264081] iwlwifi 0000:00:14.3: SecBoot CPU1 Status: 0x3, CPU2 Status: 0x2477 [    7.264084] iwlwifi 0000:00:14.3: Failed to start INIT ucode: -110 [    7.276165] iwlwifi 0000:00:14.3: Failed to run INIT ucode: -110   sudo modprobe iwlwifi returns no output. If $\cot A+\cot B+\cot C=\sqrt3$ then prove that the triangle is equilateral triangle.   Trial: I can counter check that this is true as $\cot 60+\cot 60+\cot 60=3 \frac{1}{\sqrt3}=\sqrt3$.Here I also know that $A+B+C=180$. But I am unable to show it. Please help. youtube-dl unable to download audio how to resolve that issue? How can I launch screensaver with a keyboard shortcut? MWE:  \documentclass{article}  \usepackage{listings}  \begin{document}  IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII hardware/software  \end{document}   This results in this output:    If \usepackage{listings} is commented out, the hyphenation rules return to normal:    And just to note, in the actual environment I'm working in, it will also hyphenate between hard•ware, while with listings enabled, it hyphenates hardware/•software, as in the first image:    Two questions:   Why is this happening? Is there a way to disable this? I don't really want this behaviour just because I'm typing code occasionally in a document. Extracting embedded images from a PDF How do I enumerate the properties of a JavaScript object?  I actually want to list all the defined variables and their values, but I've learned that defining a variable actually creates a property of the window object. I am trying to pull logs and doing few others things directly. written a small line BASH but not working. I am sure thats with IF Condition.    sed -rne '/21:25:07/,/21:50:07/ p'  server.log.2015-04-21 &gt; /tmp/filename.log ; du -sh  /tmp/filename.log ;  if [`du -sh  /tmp/filename.log` -gt 0] then gzip /tmp/filename.log ; How much set theory and logic should typical algebraists/analysts/geometers know? (soft-question) I know enough amount of set theory and logic to study grad-level math. However, I don't know more advanced set theory and logic, such as the ones on Kunen's or Shoenfield's texts. Although it's good to learn such advanced topics, I may not have enough time to do so, since I will probably put my emphasis on algebra, analysis or geometry as well as mathematical physics.   Although how much set theory and logic I should learn is totally up to what sort of analysis, algebra or geometry I will study, I want to know how much of them typical competitive algebraists/analysts/geometers know. If you are one of them, how much do you know? Getting hyperref to work with \citeyear and \citeyearpar in biblatex Alien studying human race for mental capacity and ESP find exclude directory Checking for valid floating point number Probability of complete coupon set in $K$ boxes where a box has $N$ distinct coupons? I keep reading in economics journals about a particular result used in random utility models. One version of the result is: if $\epsilon_i \sim_{iid}, $ Gumbel($\mu, 1), \forall i$, then:   $$E[\max_i(\delta_i + \epsilon_i)] = \mu + \gamma + \ln\left(\sum_i \exp\left\{\delta_i \right\} \right),  $$  where $\gamma \approx 0.52277$ is the Euler-Mascheroni constant.  I've checked that this makes sense using R, and it does.  The CDF for the Gumbel$(\mu, 1)$ distribution is:  $$G(\epsilon_i) = \exp(-\exp(-(\epsilon_i - \mu)))$$  I'm trying to find a proof of this and I've had no success.  I've tried to prove it myself but I can't get past a particular step.   Can anyone point me to a proof of this?  If not, maybe I can post my attempted proof up to where I get stuck. Dell R730xd - Best way to configure storage for simultaneous use with ZFS & Hardware RAID I recently purchased a Dell R730xd that came with an H730 RAID card. I would like to bring an existing 6 disk ZFS pool to this server as well as create an additional 6 disk hardware RAID.   Is it possible to configure an H730 RAID card to operate in both HBA and RAID mode simultaneously? And then only manage 6 of the disks in a hardware RAID and allow the OS to manage the remaining 6 disks in a software RAID?  If not, can a Dell R730xd use both an H730 RAID card and an LSI 9207-8i HBA card simultaneously? Would you simply plug one SAS cable from each card into each part of the Backplane? Will I need to purchase any new cables to connect the LSI 9207-8i to the backplane in my R730xd?  Is there a better card to use for ZFS in an R730xd using spinning disks than the LSI 9207-8i? A doubt regarding change of variables in Double Integrals. So I have recently learnt to calculate &quot;Double Integrals&quot; and I have a doubt on change of variables. Lets say we are evaluating a double integral of the form I = $\int\int _R F(x,y) dx dy $ , where $F(x,y)$ is an integrable smooth function and $R$ is the region of integration in the $xy$ plane. Now I want to convert to polar co-ordinates $x(r,\theta)=r \cos(\theta)$ and $y(r,\theta) = r \sin(\theta)$. Now the region $R$ in the $xy$ palne can be suitably converted to some region $R'$ in the $r \theta$ plane. The function $F(x,y)$ may take the form of some smooth and integrable $G(r,\theta)$. My main doubt is with the change of the area element. According to my textbook, $dx dy = \frac{\partial (x,y)}{\partial(r,\theta)} = rdrd\theta$. So the area element in the $r\theta$ plane is $rdr d\theta$. Now I want to experiment a little bit with my understanding : I write $dx = d(r\cos\theta) = -r\sin\theta d\theta + \cos \theta dr$  and $dy = d(r\sin\theta)=r\cos\theta d\theta + \sin\theta dr $. And now I multiply the two expression for $dx$ and $dy$ : $dxdy= -r^2\sin\theta\cos\theta d\theta d\theta - r \sin^2 \theta drd\theta + r \cos^2 \theta dr d\theta + \sin \theta \cos\theta dr dr$. Why isn't this expression equal to $rdrd\theta$ ? The $d\theta d\theta$ and $dr dr$ terms look very odd to me. Am I commiting some abuse of notation or something ? Also there are no higher order terms like $dr dr d\theta$ which I can ignore. I am totally confused with all this. Can someone explain this to me a bit clearly? Thanks in Advance :). EDIT 1 : I know differentials are not the &quot;usual&quot; kind of algebraic quantities and we can't just add and multiply them casually. I am just multiplying $dx$ with $dy$ with the spirit of multiplying some $\delta x$ and $\delta y$ and letting both $\delta x$ and $\delta y$ tend to zero. EDIT 2 : Is there a branch of Mathematics where addition and multiplication of differentials is very common? Is there something like differential of a differential ?