Posts

overwhelming

I'm searching the job sites for things like, 'entry level' or 'testing'... things I was told would be a foot in the door for getting into the tech field.  Holy cow is it overwhelming the amount of experience and skills they want you to possess.  One job was listed as entry level.... here's what was listed for "what you need to succeed": MS in Computer Science Minimum 5-10 years of relevant experience in industry Experience in machine learning technologies, especially in content understanding Experience with some machine learning frameworks – Scikit, MLPack, TF, SparkMLib, Caffe, … Experience in building, validating and evaluating of machine learning model Experience in building feature selection for machine learning Experience in building distributed systems Experience with Spark, big data processing, Hadoop. Hands on experience with Java, Python, and/or C++. Knowledge of Matlab, R and other tools. Exposure to Docker, Containerization, A...

my carrot sort, kinda like merge, or bubble

I still have to test it, but I was so excited it worked, wanted to share.  So far no issues with a random list of 30,  going to shoot for bigger lists, and run the profiler on it, compare it to the other ones.  I was playing with merge and trying to figure out a way to do that without the list breakage and memory storage. Pytest for is_sorted on a list of 800 random numbers passed. It's slower then bubble.... but faster then quicksort on my computer.... Not sure If I accomplished anything.... But I feel pretty good about doing something I set out to do. Bubble sort only has to go through the list max 799 times, but it goes completely through the list each time... Still playing with it, still fixing it. Time to run significantly fixed by taking out the back end while loop. It wasn't necessary.  I have a feeling I'm just going to end up with a bubble sort.... I don't know if there is any way to make it faster without resorting to recursions and using memory to sp...

testing sorters and memory allocation

Learning computers at this stage, I've always been the type of person to question things. Our lesson in class is to test our bubble sort, merge sort, and quick sort with a pytest module called cProfile.  My results are spectacularly slow, as expected, but the really odd thing is that my bubble sort is about the same speed as merge sort,  and my quick sort is exceedingly slower then both on a random number list of size 800. After all the tests I ran on my computer involving randint, and the timeit(), I think I have a new theory about these sorts. Because my memory is so low, the two sorts that are storing to memory to sort out the Doubly Linked List, (merge sort, quick sort)  are spilling into my hard drive, and the retrieval of those pieces are making the sort take an even longer time then it should. I asked in my class discussion board if it's worth looking into, because I think with the kind of advanced systems they use for databases this would never be an issue...

ready to make my own website

I tried to post some code in here from an app and game I made from a class exercise, but it seems blogger does not have a layout set up for the amount of text space required to place the full code in one post... I really need to get my own web page set up.  I have the domain name paid for, I just have to allocate the time to set it all up. I'm going to put a piece up in this post of the app.py & planisphere2.py and links to the full code. Hopefully soon I can get the ball rolling on my website, and start building. ### app.py ### https://drive.google.com/open?id=1z-4Zdotc_f_gAGlK3d62m4Gf8IwrJgG2 @app.route("/mygame", methods=['GET', 'POST']) def mygame():          # this runs the game     room_name = session.get('rooms')        phrase = "I was not prepared for that answer."                 if request.method == "GET": ...

Hal

With a lot of help from my classmate, io_io, we tried to get lububtu installed on my laptop, but got blackscreened.  It was a great learning experience. It was a sort of gift, and I didn't want to let it go.  It had a 1.6 GHz processor and 4G mem... so it wasn't anything special otherwise.  Windows... not my favourite.  After setting it aside I pulled out the desktop computer I got for my son 4 years ago. That's what I'm typing on at the moment... This thing is crazy compared to that laptop.... speed, memory.... and it is from 4 years ago... My sister, who I will not name, Is a wizard.  A complete badass... and stepped in to fix my laptop.  The only reason I'm not working on it now is she had to run before we could fix why the DNS isn't staying set to the proper digits... it keeps going to home. No place like 127.0.0.1 -yeah I stole it from a T-shirt Anyways, that's over my head.  I'm going to try and tinker with it, but I don't want to mes...

Timeit has a default... it runs things 1 million times....

Image
Update 1-7-2018: My CPU does not have the memory.  Found the gremlin!  Finally got one of the bastards! My laptop definitely needs a spring cleaning. Maybe it's time. The crash isn't because of randint... it's because it's building a 30 node DLList one million times,  each integer in the list can be from 0 to 100,  so besides my processor being slow.... my computer memory just can not handle it.  In the original code, timeit is trying to do this, on top of the bubble sort, one million times on those one million lists... there is no way my computer can do it,  When I take the random_list out of the test,  it can handle doing the bubble sort on the one list, one million times, it's not storing all those integers to memory.... from random import randint import math import time from ex16DLL import* max_numbers = 30 def random_list(count):     spam = DLList()     for i in range(count, 0, -1):     ...

the for loop that takes 4 hours.

Image
Update: I finally found a related article: Update:  Timeit() has a default, and runs the tested method 1 million times!!!! https://lemire.me/blog/2016/03/21/ranged-random-number-generation-is-slow-in-python/ Apparently Python's randint is kinda slow... and timeit() says it is...   I think there is something in my computer making this happen at a huge rate.... I added some more to my test from the previous test... but here's the loop I tested last night.  I decided it needed it's own post. I think the math term might be compound.  I think that's whats going on.... When this bug is happening, things are taking twice as long to process it looks like...  300 of these for loops took 1600s about....  so 10* more of those took about 16000s,  I'm not great at math, but It just seems like there's a pattern.   I also tested a little out of my python virtual environment, and it looks like times maybe cut in about half outside of the python e...