I am trying to build a binary classifier. I have tried deep neural networks with various different structures and parameters and I was not able to get anything better than  Train set accuracy : 0.70102 Test set accuracy : 0.70001   Then I tried machine learning algorithms such as KNN and Decision Trees etc. And I found that Random forest Classifier from  with n_estimators=100 gave me  Train set accuracy : 1.0 Test set accuracy : 0.924068   I tried adjusting other parameters such as max_depth, criterion But the decrease in training set accuracy also caused the test set accuracy to drop. Like   Train set accuracy : 0.82002 Test set accuracy : 0.75222   My question is, is this  Train set accuracy : 1.0 Test set accuracy : 0.924068   acceptable ? Even thought the model is over fitting, the test set accuracy is better.
Let's say we have two models trained. And let's say we are looking for good accuracy.  The first has an accuracy of 100% on training set and 84% on test set. Clearly over-fitted. The second has an accuracy of 83% on training set and 83% on test set.   On the one hand, model #1 is over-fitted but on the other hand it still yields better performance on an unseen test set than the good general model in #2.   Which model would you choose to use in production? The First or the Second and why?
How do I pipe terminal standard output (stdout) to the clipboard? For example,   Say I want to list the contents of a folder and directly paste them into a chat window for a friend to see.    I realize I could do ls &gt; filename.txt to create a file (filename.txt) with those contents; I'd then have to open or print the file and manually select and copy the text block (which can be annoying/tedious.)  I clearly could also select and copy the output of ls directly from within the terminal window.  It would be much faster/easier to simply pipe standard output to the clipboard.  What terminal command allows me to do this? Graph partition that span a third of edges Given a graph G is easy to see that we have a partition $V=V_1 \cup V_2$ so that  $$e(G[V_1])+e(G[V_2])\leq e(G)/2$$. How can we improve this result showing that we can choose $V_i$ such that $e(G[V_i])\leq e(G)/3$ for $i=1,2.$ I already have the "Edit Questions And Answers" privilege. Yet, if I approve someone else's edit, I'm told that more votes will be required before the edit is accepted.  This seems a bit peculiar to me, since I could just copy the edited version and paste it myself. Is "there're" (similar to "there's") a correct contraction? Q: "Do you have any juice?"   A: "Yes, there's some in the fridge."   Sounds perfectly fine to me, but:     Q: "Do you have any towels?"   A: "Yes, there's some in the closet."   Does not.  I asked for towels - plural - so wouldn't "Yes, there're some in the closet," in which there are is turned into a contraction be the correct way to say it?  Spellcheck, however, doesn't like "there're", and I think I'm the only person I've ever heard use the word "there're".  Even folks who I know say "there are" shorten it to "there's" when possible.  Am I saying it wrong, or are both forms acceptable? Best practices for managing and deploying large JavaScript apps What are some standard practices for managing a medium-large JavaScript application? My concerns are both speed for browser download and ease and maintainability of development.  Our JavaScript code is roughly "namespaced" as:  var Client = {    var1: '',    var2: '',     accounts: {       /* 100's of functions and variables */    },     orders: {       /* 100's of functions and variables and subsections */    }     /* etc, etc  for a couple hundred kb */ }   At the moment, we have one (unpacked, unstripped, highly readable) JavaScript file to handle all the business logic on the web application. In addition, there is jQuery and several jQuery extensions. The problem we face is that it takes forever to find anything in the JavaScript code and the browser still has a dozen files to download.  Is it common to have a handful of "source" JavaScript files that gets "compiled" into one final, compressed JavaScript file? Any other handy hints or best practices? Do save bonuses stack from multiple magic items in AL? I play in Adventurers League and have a character that has a +1 Ring of Protection, which gives +1 to AC and saves. I also have a Stone of Good Luck which gives a +1 to saves and ability checks.  If I equip both items and my base Dex save is +4, would it become +6 due to receiving both bonuses, or +5 with just one? I can't find much in the PHB or Google to answer this. Show that $z^5-1=(z-1)(z^2+2z\cos{\pi \over 5}+1)(z^2-2z\cos{2\pi \over 5}+1)$ Events triggered by dynamically generated element are not captured by event handler What happens when a creature with "Whenever a creature dies" dies simultaneously with multiple other creatures? has the following ability:     Whenever a creature you control with a +1/+1 counter on it dies, return that card to the battlefield under your control at the beginning of the next end step.   I had a number of creatures on the battlefield, including Marchesa herself, with one or more +1/+1 counters on them when  was played, destroying each creature on the board.  When Marchesa and several other creatures would be killed simultaneously,   Does Marchesa's ability trigger for herself? Does Marchesa's ability trigger for the other creatures under my control with +1/+1 counters?   In attempting to resolve the issue, we tried to look things up, leading to , which cites Rule 603.6d as proving that Marchesa's ability should trigger both for herself and for each other creature with +1/+1 counters.  Unfortunately, none of us could actually understand Rule 603.6d, aside from this example:     Two creatures are on the battlefield along with an artifact that has the ability Whenever a creature dies, you gain 1 life. Someone plays a spell that destroys all artifacts, creatures, and enchantments. The artifacts ability triggers twice, even though the artifact goes to its owners graveyard at the same time as the creatures.   The example certainly seems analogous to me, but without understanding the actual rule, rather than just the example, we weren't too sure.  A complete answer has to not only answer the question, but back up that answer with citation and explanation of the official rules on the matter. How do shock waves form in space? Today my aerodynamics professor mentioned that the equations we were learning for atmospheric shock waves can also be applied by astrophysicists to study black hole-related shock waves in space.  How is this possible? Isn't space too rarefied for shock waves? What is an example application? He mentioned something about the density limit before/after a relativistic shock approaching 6. From the Immediate Window in Visual Studio:   &gt; Path.Combine(@"C:\x", "y") "C:\\x\\y" &gt; Path.Combine(@"C:\x", @"\y") "\\y"   It seems that they should both be the same.    The old FileSystemObject.BuildPath() didn't work this way... What is the name of this kind of character illustration? Quotient groups of D10 How do I find the groups D10/N where N is the normal subgroups to D10?  I know that the definition is aN for all a $\in$ D10. But I am unsure what the group, for example, D10/ D10 looks like? Any help would be much appreciated. Is convex hull of a finite set of points in $\mathbb R^2$ closed? Is the convex hull  of a finite set of points in $\mathbb R^2$ closed? Intuitively, yes. But not sure how to show that. Thanks! Produce two distinct topologies of R such that the first is strictly finer than the second but the two are homeomorphic to each other. Need to prove that they are homeomorphic to each other.  So if T_1 and T_2 are topologies on set X with T_1 contained in T_2, every element of T_1 will be in T_2 and T_2 is the "finer" (stronger and larger) topology. So to them be homeomorphic is T_1 going to have to be a hole in T_2? Is it correct to omit preposition before date? No \xrightrightarrow[a]{b}? I'm having this Error when I try to compile my .tex file with xelatex:  ! Package hyperref Error: Wrong DVI mode driver option `dvips', (hyperref)                because XeTeX is running.  See the hyperref package documentation for explanation.   This is my LaTeX header  \documentclass[10pt, a4paper, dvips,]{moderncv}  \moderncvtheme[grey, roman]{classic}  \usepackage{ifxetex} \ifxetex % only for xelatex \usepackage{xltxtra} % this should load both fontspec &amp; xunicode \usepackage{fontspec} \setromanfont{Helvetica Neue} \else % \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \fi % \ifxetex   Any ideas?  EDIT:  I removed the 'dvips', now I get:  ! Package hyperref Error: Wrong driver option `pdftex', (hyperref)                because pdfTeX in PDF mode is not detected.  See the hyperref package documentation for explanation.   Now my first latex line  \documentclass[10pt, a4paper]{moderncv}   Any clues ? Adding a script to the page dynamically with jQuery never uses the cached file What do I call someone who marries or has a sexual relationship with someone much younger than themselves? Their partner is someone who is at least 18 years old.    The term paedophile is not the correct word, because it refers to minors.