Difference between PCA (principal component analysis) and feature selection
What is the difference between principal component analysis (PCA) and feature selection in machine learning? Is PCA a means of feature selection?
Join the discussion →What is the difference between principal component analysis (PCA) and feature selection in machine learning? Is PCA a means of feature selection?
Join the discussion →On mac snow leopard, I have installed Apache Solr 4.2.0 using brew and triggered the server using the below commands, Usage: $ solr path/to/config/dir When I try to access the admin page in browser using below link and the page with SolrCore Initialization failure occurs as below, http://localhost:8983/solr/admin collection1: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load config for solrconfig.xml The page also has message, There are no SolrCores running. Using the Solr Admin UI currently requires at least one SolrCore. Any help regarding this is grea
Join the discussion →Is it possible for a JVM to run more than one program at the same time? If so, how? If not, why? To run a program, we simply do java ProgramName But can we use the same JVM instance to run another program?
Join the discussion →I want to send a private messages to my friends silently. So, I prefer FB.api method to send. But, I could not find the best solution for my problem. Send Dialog api sends in FB.ui method and can't send more than 1 at a time. It expects a form submission. Feed Dialog api is a public post. I think, I'm right. My exact scenario is, I have huge number of messages in my app. I will select and send to my friends. It would not displayed on their wall. I mean it should not be a public. It should be a private message. Please send your ideas.
Join the discussion →What I'm trying to do is create a simple form with a dropdown list and a submit button. Upon selecting an option from the dropdown list, the user clicks the submit button and a popup window opens that allows them to view more info about the option they selected. Right now I simply have: <form action="example.php" method="post" target="_blank"> <select size="7" name="identifier" style="width: 100%;"> <option> Options.... </option> </select> </form> Now this does 'work' as is in that when the user selects an option and presses submit, it opens a new window with the selected option post data pass
Join the discussion →I'm trying to invoke a Python 2.7 script from an IronPython one using subprocess.call. the invoked process uses imports that are not supported in IronPython like scikit-learn and requests. Currently I'm trying to invoke the python 2.7 script using this comand: sub_ret_val = subprocess.call("C:/Documents and Settings/avishay/workspace/BursaProject_V1_31/brainManager_toFile.py", shell = True, stderr = subprocess.STDOUT) but I'm getting: LookupError: unknown encoding: idna This script works fine if I run it from the Windows shell, or from eclipse pydev environment. what is the difference between
Join the discussion →The basic approach to this is printing the matrices. But when you get to bigger numbers, even though you're debugging (the algorithm might not work for 2 by 2 or 4 by 4 matrices), it starts to get hairy really fast. This can be language specific or language agnostic, as I can always print the results out and pipe them to some other program while debugging. What tricks do you use to spot discrepancies in this case? Do you use norms? Audio? Video? Other (mixed) representations? I know this is kind of vague, but I don't care if it does or does not apply to my current situation. It might in the fu
Join the discussion →When I use sheet.getLastRow(); it returns the last row which has content. But when I use range.getLastRow(); it returns the last row of the range and not considering content in it. Can anyone suggest a way to find last occupied cell in the range.
Join the discussion →I want to find the coordinate of an unknown node which lie somewhere in the space which has its reference distance away from 3 or more nodes which all of them have known coordinate. This problem is exactly like Trilateration as described here Trilateration. However, I don't understand the part about "Preliminary and final computations" (refer to the wikipedia site). I don't get where I could find P1, P2 and P3 just so I can put to those equation? Thanks
Join the discussion →Greetings. I searched for a long time, and found many related questions with no answer for me. Despite mine seems to be a simple beginner doubt. We have a (I guess) typical class definition: class Town: def __init__(self, Name, Ruler = "Spanish Inquisition"): self.Name = Name self.Population = 0 self.LocationX = 0 self.LocationY = 0 self.Religion = "Jedi" self.Ruler = Ruler self.Products = ["Redstone", "Azaleas"] You get the idea. A lot of attributes. I need all of them. The question is: **Is there a shortcut to save all those "self."?** Am I being too lazy? I hoped for something like: with se
Join the discussion →Draw an ER diagram for the following situation: a lab has several chemists who work on one or more projects. Chemists also may use certain kinds of equipments on each project. Attributes of Chemist include EmployeeID (identifier), Name, and PhoneNo. Attributes of Project include ProjectID (identifier), and StartDate. Attributes of Equipment include SerialNo (identifier) and Cost. The organization wishes to record AssignDate, the date when a given equipment item was assigned to a particular chemist working on a specified project. The organization also wishes to record the association between th
Join the discussion →I have this timer which works fine, but i need to be able to pause and resume it after that. i would appreciate it if someone could help me. <html> <head> <script> function startTimer(m,s) { document.getElementById('timer').innerHTML= m+":"+s; if (s==0) { if (m == 0) { return; } else if (m != 0) { m = m-1; s = 60; } } s = s-1; t=setTimeout(function(){startTimer(m,s)},1000); } </script> </head> <body> <button onClick = "startTimer(5,0)">Start</button> <p id = "timer">00:00</p> </body> </html>
Join the discussion →Just like my original question states. I was wondering in there is a was in vb.net to consume an asp.net web api. I'm a beginner asp.net programmer. I'm watching videos on how to make the web api. But can't seem to find any indication on using the web service in a vb.net application. I just want to send serialized objects to the web service. Have the web service deserialize the object and make a decision based on it's contents and send back a respond to the application. I need to start testing the web service and I want to have my application to work with the api. Which loops back to the quest
Join the discussion →I would like to add a column to the second level of a multiindex column dataframe. In [151]: df Out[151]: first bar baz second one two one two A 0.487880 -0.487661 -1.030176 0.100813 B 0.267913 1.918923 0.132791 0.178503 C 1.550526 -0.312235 -1.177689 -0.081596 The usual trick of direct assignment does not work: In [152]: df['bar']['three'] = [0, 1, 2] In [153]: df Out[153]: first bar baz second one two one two A 0.487880 -0.487661 -1.030176 0.100813 B 0.267913 1.918923 0.132791 0.178503 C 1.550526 -0.312235 -1.177689 -0.081596 How can I add the third row to under "bar"?
Join the discussion →Passing a filename to the firefox browser causes it to replace spaces with %2520 instead of %20. I have the following HTML in a file called myhtml.html: <img src="C:\Documents and Settings\screenshots\Image01.png"/> When I load myhtml.html into firefox, the image shows up as a broken image. So I right click the link to view the picture and it shows this modified URL: file:///c:/Documents%2520and%2520Settings/screenshots/Image01.png ^ ^-----Firefox changed my space to %2520. What the heck? It converted my space into a %2520. Shouldn't it be converting it to a %20? How do I change this HTML file
Join the discussion →I am analysing library statistics relating to loans made by particular user categories. The loan data forms the named range LoansToApril2013. Excel 2007 is quite happy for me to use an index range as the sum range in a SUMIF: =SUMIF(INDEX(LoansToApril2013,0,3),10,INDEX(LoansToApril2013,0,4):INDEX(LoansToApril2013,0,6)) Here 10 indicates a specific user category, and this sums loans made to that group from three columns. By "index range" I'm referring to the INDEX(LoansToApril2013,0,4):INDEX(LoansToApril2013,0,6) sum_range value. However, if I switch to using a SUMIFS to add further criteria, E
Join the discussion →I am in the process of designing a public API for our REST interface. One of the thing's that came up was the use of the http verbs, specifically the DELETE verb. We want to expose methods to start/stop or execute/abort a particular job. The two flavors of api design for these two are: POST http://localhost/api/campaignrun/1 Execute campaign run with an id of 1 DELETE http://localhost/api/campaignrun/1 Abort the campaign run with an id of 1 Alternatively... POST http://localhost/api/campaignrun/1 { action=execute} Execute campaign run with an id of 1 POST http://localhost/api/campaignrun/1 { a
Join the discussion →I'd like to visit Perito Moreno Glacier while I'll be in Patagonia. I'm not sure where I will depart from, but my options are Punta Arenas, Puerto Natales or EcoCamp Patagonia. Do you know whether there is any public transport from these locations to El Calafate? If so, where can I check its schedule? How long it takes to get to the El Calafate (including time on a border)? Is it safe to drive there by yourself? I've heard that sometimes the road is closed due to weather conditions, so what time of the year would you recommend to visit the Glaciers and Torres Del Paine?
Join the discussion →Why doesn't this work? if(typeof(localStorage.getItem("username"))=='undefined'){ alert('no'); }; The goal is to redirect the user from the index page to the login page if not already logged. Here the localStorage.getItem("username")) variable is currently not defined. It's for an iOS phonegap app.
Join the discussion →Duplicate: This is a duplicate of this question I'm assigning a new column as Date or IDate while using by =. It's creating an integer column, not a Date as expected. require(data.table) dt <- data.table(date = as.IDate(sample(10000:11000, 10), origin = "1970-01-01")) dt[, group := rep(1:2, 5)] print(dt) # date group # 1: 1997-06-12 1 # 2: 1998-02-19 2 # 3: 1998-04-25 1 # 4: 1998-01-27 2 # 5: 1997-10-29 1 # 6: 1998-05-08 2 # 7: 1999-05-09 1 # 8: 1999-06-26 2 # 9: 1997-11-01 1 # 10: 1997-07-19 2 This works: dt[, min.date := min(date)] print(dt) # date group min.date # 1: 1997-06-12 1 1997-06-12
Join the discussion →I'm using XAMPP to learn wordpress these days.I've established a simple site.After opening 80 port in my router,I can visit my site like this: ExternalIP/wordpress The problem is:I can ONLY open my index.php.I notice that the links in index.php all begin with "localhost/".I know I have to do something to modify it to my actual IP address,but I cannot figure out how to do it.What am I supposed to do? Best regards.
Join the discussion →I've recently been trying to immerse myself in the world of assembly programming with the eventual goal of creating my own programming language. I want my first real project to be a simple assembler written in C that will be able to assemble a very small portion of the x86 machine language and create a Windows executable. No macros, no linkers. Just assembly. On paper, it seems simple enough. Assembly code comes in, machine code comes out. But as soon as I thinking about all the details, it suddenly becomes very daunting. What conventions does the operating system demand? How do I align data a
Join the discussion →Is there a way to disable all the extensions I have installed in Google Chrome v26 only for http://localhost/? The reason is, some of the extensions inject HTML and load images into the page, like Feedly and Readability, which I don't want to see when I testing pages.
Join the discussion →What is the <- operator in go language? Have seen this in many code snippets related to Go but what is the meaning of it?
Join the discussion →I am using asp.net C# and am unable to manage sessions per multiple tabs. The scenario for my website is: the user logs in, selects a job, and then applies for that job, and when the user applies, an entry is added to the database against that request. It will store the selected job ID and email ID of that user. The problem happens when I open the login page in a browser in 2 different tabs. The entry data gets messed up. For example, user A selected job 1, and user B selected job 2. When I press the apply button from user B, his selected job and user A's email ID are entered into the database
Join the discussion →I need a little help with one batch script and xcopy. I have a folder with a lot of different folders inside. For example: "Test" is the primary directory and inside I have New folder 1, New folder 2, New folder 3... Every week these folders have to copy to different servers. My script is: if exist "%dir%\New folder 1" ( xcopy %dir%\New folder 1 C:\Users\user1\New folder1 /i /q /s /y /z echo New folder 1 copied successfully ) if exist "%dir%\New folder 2" ( xcopy %dir%\New folder 2 C:\Users\user1\New folder2 /i /q /s /y /z echo New folder 2 copied successfully ) I need to update my script to s
Join the discussion →I'm trying to build a tree of an arbitrary size using data from a file. In the file, each node is its own line, and the branches are delimited by certain keywords. Currently, I am reading the file into a List, reading it item by item, and looking for the keywords to build the branches down. I am having a hard time figuring out how to keep going after I start the first branch. Following is my tree class and test input file. I realize the test input may be considered too big for a test, but the actual one will have many, many models. The end goal is to have the tree represent the harley davidson
Join the discussion →I need to upload an image, and display it, as well as save it so that I don't lose it when I refresh the localhost. This needs to be done using an "Upload" button, which prompts for a file-selection. I am using node.js and express for the server-side code.
Join the discussion →I've read everything here and everything I can find on the net about doing this, but the information is out-of-date, contradictory, or inapplicable. I have a very simple library in C, which I compile to a shared library in Linux, and all works wonderfully. I want to port this to a Windows DLL. I haven't programmed Windows since the 1990s, but I'm not totally clueless about its complications (indeed, they are the reason I use Linux :-). The MinGW compiler line that generates the library is this (generated by cmake): gcc.exe -Wl,--export-all -Wl,--enable-auto-import -shared -o libonejoker.dll -W
Join the discussion →I keep getting: warning MSB3026: Could not copy dlls errors. I have several projects in the solution. On build, I also get the error: Error 47 Could not copy "myapp\bin\Debug*.dll" to "bin*.dll". Exceeded retry count of 10. Failed. The application just stops responding in the middle of debugging, and I have to close Visual Studio every time. Which was annoying, but now it's getting frustrating as well. We are eight team members, and all of us are getting the same error. We can't rebuild the solution, and the application is running very slow. One of things we are using in the project is SignalR
Join the discussion →