Jump to content

fredreload

Senior Members
  • Posts

    1123
  • Joined

  • Last visited

Posts posted by fredreload

  1. 9 hours ago, DrmDoc said:

    I've commented on this subject before with actual evidence presented in an article link that iNow provided:  About life and consciousness. - Page 9 - General Philosophy - Science Forums

    As I suggested, consciousness occurs in brain function where afferent (input) sensory stimuli merges with efferent (output) sensory responses.  

     

    Which is true because consciousness is a frequency, and that gives it functional properties. But you should be able to pinpoint it to a particular brain structure that gives rise to this frequency(from the gray matter). It is interesting that you mentioned thalamus(because thalamus is also gray matter), but thalamus provides the current. It is the resonance in the striatum that gives rise to the consciousness(a bit of a speculation here). For instance, I can say if you remove the entire cerebral cortex, you would still have consciousness, you might lose some memory or even exhibit speech impediments but you would not lose consciousness from removing the entire cerebral cortex. What I want is to pinpoint to the exact structure that gives rise to this consciousness frequency, and I believe it is in the striatum.

    If you take a look this D2 loop from Wikipedia (https://en.wikipedia.org/wiki/Striatum#/media/File:Basal_ganglia_circuits.svg). You would see that it arrives in the thalamus last, but it branches out to the entire brain afterward. Thalamus is also an important structure for providing brain waves to the entire brain. And how the caudate nucleus gives rise to the consciousness is in its unique structure(shape like a horn)(https://en.wikipedia.org/wiki/Basal_ganglia). Although I am not yet capable of speculating how consciousness arise from that structure. And when the current goes through the striatum it goes through the caudate nucleus all the way down to the amygdala. So it blinks like a beacon from the airplane light, which exhibits a certain frequency.

    And for that matters you would derive a Q output-waveform for the consciousness and its functional properties.

     

  2. The seat of consciousness is in the striatum, more specifically, the caudate nucleus. The brain is consisted of various electric fields because of the electrochemistry of the brain. Imagine short circuiting these electric fields or electrochemical interactions through electromagnetic radiation and you would feel that you could short circuit the cerebral cortex and the outer layer of the brain with no consciousness lost, except at the basal ganglia particularly at that of the striatum. I am unsure where the striatum gets its input frequency though. I will need some help on that one.

  3. On 3/8/2021 at 9:18 PM, Sensei said:

    Regardless of source of data there are stock operations like stock split and stock merge which dramatically change stock price when in the reality they are neutral . Read here:

    https://en.m.wikipedia.org/wiki/Stock_split

    https://en.m.wikipedia.org/wiki/Reverse_stock_split

    Which will completely confuse script or program which doesn't handle them or stock data doesn't contain information about the operation.

    E.g. one day stock price is $100 and the next day is $20. Script will interpret it as 80% drop of price when in the reality there was no drop but quantity of shares was 5x multiplied. 

    Yet another operation influencing price is dividend. Read here:

    https://en.m.wikipedia.org/wiki/Dividend

    I thought about it. If I do not understand the underlying mechanics of neural network and tensorflow then this program is like a blackbox. I would not know if the stock would rise or fall for a particular company because I do not know how the program operates. So I probably would not use it for now.

  4. All credit goes to download this github code.

    https://github.com/jaungiers/LSTM-Neural-Network-for-Time-Series-Prediction?fbclid=IwAR3XFpiW1TLoh4o1iUXmph8rZT6Hcv6QqZuim3LHFVJCVT_tBAVL7YIU33w

    I ran it, it is fully working. I installed python 3.5.4 and all the requirements. The only thing you might have problem with is "pip install tensorflow". I ran mine in windows 7 and I do not have to install Cudas and Cudnn. If you are in windows 10 you might need Cuda 8.0 and Cudnn 5.1(never tested).

    Below is a screenshot of the output for sp500:

    1262627156_.thumb.png.f7bff5a39e7a43835ee3b3ec26ce16b2.png

    Below is the sp500.csv data:

    14050571_.thumb.png.b6ab4c8dfc8ba24d2b590cf35d7925be.png

    Question:

    I want more stock data presented in this format where it got "Date, Open, High, Low, Close, and Volume". I think the Yahoo Stock data has them all, but those skip dates by days I think(I could be wrong, because I am a newb at stock. I never played). If the Yahoo Stock data does include all the trade history from when the company is first launched, do let me know, also let me know if there are other useful stock api to use(I do not want partial stock data I want full stock data), appreciated.

  5. 1 hour ago, Sensei said:

    Make cache in memory. Check if word is present in dynamically allocated array or key-value pair associative array, if it is, increase usage counter of the entry. If it is not present, lookup the database and put the new entry in the cache. Have 1000, 10000, or so, the most used entries. From time to time flush cache of the least used entries.

    The most frequently used words-entries-phrases will be cached at all times during execution of the script.

    You can make separate caches for words, phrase with two words. three words. Each with user configurable max number of entries.

    In OOP language you should just make class for cache which will cover entire database code.

    When I cache the memory it used up all 16GB of RAM, that is actually the first thing I tried, but my computer cannot handle that big of a cache(I only have 16GB of RAM), so I switched to a disk based dictionary. The idea about the dictionary is since every single dict key is assigned a unique formula so the search time it takes to get to any particular key is always O(1). I dunno about database though or if it could be converted to a dictionary based method to optimize the run time.

  6. 20 hours ago, Sensei said:

    Do you have SSD? Do you have NVMe? What is transfer of data during db access? How many GB of memory does your computer have? Try using virtual disk in memory to see whether there will be change in speed.

    How are you storing, querying and updating db? Show SQL query string for them all.

    You can try:

    - calculate md5 (or so) of phrase text first. It will be hash code.

    - phrase table. Use above hash as unique key together with each phrase text.

    - frequency table. Use above hash code in second table with quantities / frequencies as integer.

    Therefore update should be faster. Won't require adding or replacing entire string.

     

    Alternatively don't store phrases as plain text. Have dictionary with words with unique indices. 4 bytes integer is enough to have 4.2 bln words. Then make phrase dictionary table. One with two columns for word indexes. Second table with three columns for word indexes. etc. in the future you will add more.

    That is a really good idea. First I would index all the words presented with a list of unique IDs. But the problem I am facing is, SQL is not a dictionary.

    If I have do to "select * from db where string='123'" it would have a much faster run time with a dictionary for db["123"], if there is a way to combine this aspect of dictionary with the SQL database.

  7. 20 hours ago, Ghideon said:

    Information provided so far is not enough to comment on what kind of issue you are facing regarding performance; I do not have an opinion if specific products are suitable or not suitable. 

    As you can see my shelve db file are some few GBs in size. Each dictionary consists of a phrase and a frequency and I would constantly update this frequency. So for sqlite I would have like 1 billion upsert statements. I tried to run 1 billion inserts, which is fast, but when it comes to update the frequency it takes forever. This is for if exist insert else update. I never tried upsert so I would not know if it is faster/slower.

  8. 57 minutes ago, Sensei said:

    You don't seem to understand what he did on the video...

    Game was not run in some turbo speed. Just frequency of key events was increased..

    On Windows OS is sending events WM_KEYDOWN when user pressed key and WM_KEYUP after releasing key button. However when user pressed key button and holds it, there are send WM_CHAR with small delay between them. Application (emulator) and/or external keyboard utility (e.g. keylogger) can inject more WM_CHAR into input events queue and increase frequency. Buggy application will be cheated because programmer did not think about such situation in advance..

    Similar situation is with games which did not wait for vertical blank (VBlank interrupt).

    Emulator get this functionality to fight with such not waiting for vblank games, so they still could be usable after increasing delay of key events.

    If you want to increase speed of execution of your programs 1) stop using Python and write code in C/C++ 2) use multithreading. Modern CPUs have 8+ HT threads and more. 3) use CUDA/OpenCL and use GPU for heavy computing. Modern GPUs have 1024-8192 cores on GFX.

    Looking on questions asked on the forum, doubtful that his Python programs are multithreaded. So he could instantly have 8-12 boost after using the all cores of CPU.. If script is just calculating.. But the most of the scripts are loading data from storage etc. etc. Getting M2 NVMe would speedup 3-7x in comparison to ordinary SSD, and 70x in comparison to traditional HDD.

    I looked at the emulator's source code. I think they are skipping frames so instead of 60 frames per sec they stream at 120 frames per sec. I would only guess the whole mechanics works like a CRT television screen display.

  9. 2 hours ago, Ghideon said:

    The information provided is too limited, I will not try to make a prediction. In my experience performance is a result of many parameters; using another implementation language may or may not result in a required performance boost.  

    I agree, I am unable to find a suitable disk based dictionary for c# = =, I am using shelvedb for this program. So I might have to use sqlite if I want to integrate it to a c# platform, but sqlite is pretty slow still.

  10. 23 hours ago, Ghideon said:

    Sorry but I think you need to think through what you want to create and how to present it. It is tricky to sort out what kind of computer science aspects you wish to discuss. The contradictions between you posts does not help. 

    If you want to incorporate FPS*in the gameplay I think it would be more efficient to start from something else than a comparison with Command and Conquer. AFAIK the Command and Conquer franchise does not incorporate FPS gameplay (yet).

    Ya you are right. As you know I am working with Unity 3D, I am deciding between a 2D platform or 3D platform. The 2D platform would consist of a mercenary camp and mercenary bots that would traverse the map and hunt zombies and get items. The 3D platform would consist of a wave like maze with a boss in the end, think of a Wacraft III td maze with a FPS aspect where you get to control a hero in a FPS manner.

    I dunno, I think not as many people would purchase a 2D platform vs a 3D Doom type gameplay, but that is just from my perspective.

  11. You can customize the mercenaries with weapons purchased from a shop or drop from zombies(The mercenaries have their own inventory). The default weapon is a fist. And once you get a weapon you can implement different stats.

    Yes it will be wave based, but you get to control one of the unit in FPS style, the rest are your comrades. I think I want to make the base invincible though, still deciding.

    Yes it is a little bit like War Craft III in a sense combined with FPS

  12. I want to make a game with Unity 3D. I have not decided if it should be in 2D or 3D. The idea is like this. If you've played Command and Conquer then you know you can make an infantry camp. And my game would start out with a mercenary camp and I can hire people to kill zombies(randomly generated on the map), or work in a company to get money. Now if you ask me why killing zombie does not get you money I would say I have no idea cuz I just thought of this idea. The unique part about this game is the character's movements are all automated. Meaning they would explore the map and kill zombies by themselves, same goes for going to the company and working to earn money. As you know in Unity 3D you can play scripts inside an object, but I have not really worked on a 3D intelligent bot before. This sort of bot only exist in MMORPG macro if you know what I mean. So I might keep it in 2D, just to make it simple. I have not touch Unity 3D since 2014, but I think this idea is golden. Let me know what you think and how I can get this character scripts to work.

    P.S. If you say Command and Conquer has done it before, no have they have not. The difference is this game would have the characters automated in their task. Like search and destroy.

    P.S. Yes the Command and Conquer AI, but that is not a game = =, hmm

  13. Description:

    I wrote this AI after I left my previous company in Pou Chen. I did a little bit of web scraping with words frequency testing in the company so I came up with this AI after I left the company. Below are the videos and the Python scripts are included in the video as well as a link to Crunchyroll explaining its content posted by me.

    You can:

    Run the scripts and test them out for me to see what I can improve on. Yes the scripts are crude with no comments but I took 6 months(non continuous) working on them. So before you say it does not make sense or not working, sort of take some time to get used to the scripts and I will try and answer the questions here. You can also test the scripts with a different dictionary once you understand the program.

    Part 1:

    Part 2:

     

  14. 10 minutes ago, dimreepr said:

    Yet you insist on steering it...

    Salamander was not born on that day, that rules out the regeneration capabilities. And I think that was not earth bound, aka, not someone time traveled from the future. The interesting part is it was shut down by lightning though and the weather storm device is clearly not on my side.

  15. 5 minutes ago, dimreepr said:

    No, just a lack of understanding...

    I can't be the first one to figure it out, if Michael Levin has done it it is probably there since the 1970s. Well but I am gonna keep it to myself for my own benefit, so that I hopefully do not come across a no answer @@

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.