The Big Programming Thread - Page 287
Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
nunez
Norway4003 Posts
| ||
iaretehnoob
Sweden741 Posts
On April 22 2013 04:41 Arnstein wrote: I need help with something: In a class, I have to make an add function that takes in another instance of that class, and iterate over a private member of that function, a map that takes in two string arguments. Then I have to iterate over the first string argument, and add both to the existing one. This doesn't work: + Show Spoiler + void add ( const PhonebookEntry& copyFrom ) What is the correct way to iterate over this? Define "This doesn't work". What is the error? Also while the rest of the question is not really clear to me, I think you want to iterate over copyFrom.numbers, not this->numbers. Better yet: look at map::insert(). | ||
Arnstein
Norway3381 Posts
On April 22 2013 05:11 iaretehnoob wrote: Define "This doesn't work". What is the error? Also while the rest of the question is not really clear to me, I think you want to iterate over copyFrom.numbers, not this->numbers. Better yet: look at map::insert(). I think I want to iterate over the old one, not the copyFrom. This is because you have to replace the old ones, but come to think about it, it's probably just better to iterate over the new one, then insert from it, and delete the ones left on the this->numbers. The error I get is: invalid use of this outside of a nonstatic member function. Edit: If I iterate over the copyFrom, I will probably have to make a get-function for the map. This isn't mentioned in the task text, so I don't think that's the idea. | ||
iaretehnoob
Sweden741 Posts
As in: void PhonebookEntry::add(....) { } As for the logic, well, I don't know what you're trying to do, so I'll leave you to it, especially if it's HW. | ||
tuho12345
4482 Posts
![]() | ||
Craton
United States17234 Posts
| ||
Isualin
Germany1903 Posts
On April 22 2013 05:43 tuho12345 wrote: hi everyone, I have an internship opportunity coming up, however I have to prepare some basic knowledge on MS SQL. I've read SQL for dummies but could anyone kind to guide me what else I can prepare and tutor or test me a little in the future? Thank you so much ![]() i think you should find a sample database with a lot of data(like adventureworks) and try sql queries on it if you are inexperienced like me. | ||
Deleted User 101379
4849 Posts
On April 22 2013 05:43 tuho12345 wrote: hi everyone, I have an internship opportunity coming up, however I have to prepare some basic knowledge on MS SQL. I've read SQL for dummies but could anyone kind to guide me what else I can prepare and tutor or test me a little in the future? Thank you so much ![]() Just remember that MS SQL is different to MySQL. The MS SQL (or rather SQL Server as it's called by MS) SQL dialect is T-SQL. There are some important differences to the MySQL dialect so be very careful when googling. For something to program using the SQL Server, a simple blog or CMS should be easy enough but still complex enough to not be completely trivial. | ||
Nazza
Australia1654 Posts
On April 21 2013 11:02 obesechicken13 wrote: Both good points. Developer time is very valuable imo and so it should be used in the most useful ways. Optimization isn't worth the time for many sites. Right now I'm going into a course for interactive programming for python on Coursera. I was always confused by how Coursera would make any revenue. They recently added certificates though ![]() Coursera's pretty awesome. I don't think they expect to make too much money, as I think their main goals are just providing higher education to those that can't really afford it, or just giving access to as many people as they can. I'm about to finish a Python course called "Crafting quality code". It was pretty basic but I learned some things. Still taking a course in Scala, Hardware/Software Interface, and about to start one on machine learning. There's going to be Systematic Program design in a month too. | ||
obesechicken13
United States10467 Posts
On April 22 2013 08:20 Nazza wrote: Coursera's pretty awesome. I don't think they expect to make too much money, as I think their main goals are just providing higher education to those that can't really afford it, or just giving access to as many people as they can. I'm about to finish a Python course called "Crafting quality code". It was pretty basic but I learned some things. Still taking a course in Scala, Hardware/Software Interface, and about to start one on machine learning. There's going to be Systematic Program design in a month too. I'm starting to dislike coursera again. I hate formal courses. I was able to do a project today: a rock paper scissors lizard spock game, but I didn't like having to watch video lectures. | ||
tuho12345
4482 Posts
| ||
Nazza
Australia1654 Posts
On April 22 2013 10:20 obesechicken13 wrote: I'm starting to dislike coursera again. I hate formal courses. I was able to do a project today: a rock paper scissors lizard spock game, but I didn't like having to watch video lectures. The whole point of having lectures in that format is that you do projects and assignments, and that there is pressure on you to do them on the deadline. Otherwise, people don't learn, or won't be motivated to do stuff ![]() Some video lecturers are better than others, but frankly, as long as they speak proper English I don't really care. | ||
icystorage
Jollibee19343 Posts
| ||
obesechicken13
United States10467 Posts
On April 22 2013 22:19 icystorage wrote: is somebody knowledgeable on how neural networks works here? can I send you a PM? specifically feed forward neural networks. Why not just post it here? | ||
icystorage
Jollibee19343 Posts
| ||
AmericanUmlaut
Germany2574 Posts
On April 22 2013 23:25 icystorage wrote: i kinda feel these are basic questions and i just need someone to explain them to me :x i watched some videos and read about it but i need someone to answer my questions So why don't you post them here? There's no rule against basic questions. | ||
icystorage
Jollibee19343 Posts
1) you can use neural networks to predict an output right? 2) how do you make it predict? do you have to train it? 3) by training it, it adjusts its weight right? 4) if i give NN a pattern of 1,1,1,1,1 will it predict the next number will be 1? 5) heres my general understanding in predicting neural networks - train the network by feeding it data (it adjusts its weight and compares its output to your EXPECTED, not predicted, output) - with the current configuration of the weights you now use it to get the predicted output sorry if its confusing but im also very confused atm | ||
nunez
Norway4003 Posts
need to buff my skills for summer job. | ||
mcc
Czech Republic4646 Posts
On April 22 2013 23:39 icystorage wrote: Um okay 1) you can use neural networks to predict an output right? 2) how do you make it predict? do you have to train it? 3) by training it, it adjusts its weight right? 4) if i give NN a pattern of 1,1,1,1,1 will it predict the next number will be 1? 5) heres my general understanding in predicting neural networks - train the network by feeding it data (it adjusts its weight and compares its output to your EXPECTED, not predicted, output) - with the current configuration of the weights you now use it to get the predicted output sorry if its confusing but im also very confused atm 1) yes 2) You can either train it or set the weights "correctly" at the start by using some other process (but you can also call it training) 3) yes 4) Not necessarily. It depends on what patterns you trained it to recognize and also how well you trained it Note that there is plenty of NN types and they have sometimes quite different ways of setting up weights. So you need to specify which type you are talking about, most likely some perceptron-like multi-layer network with backpropagation ? | ||
icystorage
Jollibee19343 Posts
im actually working on the perceptron-like multi-layer network with backpropagation and im kinda relieved it matched your suggestion (means im on the right track) what im trying to do is use NN to predict stock prices (yes it is impossible but i want to test the NN with these data) stock has 4 prices, open, low, high and close. i want it to predict the closing price. now, is the training (weight adjustment) separate from the predicting or should i input all the necessary data (technicalities aside, just the procedure) then expect the predicted value? | ||
| ||