Showing posts with label bitcoin. Show all posts
Showing posts with label bitcoin. Show all posts

Wednesday, April 28, 2021

The Learning Process of M.L Algorithms

 *  During the process of optimization , the machine learning algorithm searches the possible variants of parameter combinations in order to find the best one which would allow the correct mapping between the features and the classes during the process of training

 *  This process evaluates many potential candidate target fuunctions from among those which a learning algorithm can guess

 *  The set of all the potential functions that the learning algorithm can figure out is called a Hypothesis Space

 *  One can call the resulting classifier with their set of parameters as a Hypothesis , which is a way in machine learning to say that the algorithm has set parameters to replicate the target function and is thus now ready to work out correct classifications

  *  The hypothesis space space must contain all the parameter variants of all the machine learning algorithms that one may want to try to map to an unknown function when solving a classification problem . This particular sentence suggests that the entire sample space takes into consideration , a hypothesis space which would contain all the possible variations in the form of scenarios over where the machine learning algorithm could manifest itself at each point of time under the conditions upto which a particular program has been evaluated till a particular point of time and from which the Machine Learning algorithm would do a self analysis on its own for finding the best possible approach for a given condition or problem . This is an instance example of a condition to showcase how a machine learning algorithm would be doing a self analysis for a possible  condition and   then take the best possible course of action basing upon its own understanding and derived results .So , elaborating more upon the aspect of hypothesis space .. one can deduce that a hypothesis space generally consists of a target function or  a similar approximation which is much different for a similar function .

 *  The equivalent of this could be thought of as the time when a child in an effort to figure out an image of a tree experiments with many different creative ideas by assembling one's own knowledge and experiences . Most certainly , parents play a major role in this learning phase and they provide all kinds of relevant environmental inputs for the faster and effective upbringing of the child . In Machine Learning , for say in supervised learning algorithms one has to provide the right learning algorithms and with that one has to provide some non-learnable parameters called as hyper-parameters , next one has to choose a set of  examples to learn and adapt from and then select the features that accompnay the examples . And just as a child cannot always learn to distinguish between  right and wrong if left alone in the world ( consider the example of the case depicted in the book - Lord of the Flies ; summary is available at may sites where one can have a quick synopsis of the story and save time from reading the entire book which in these days is a very tedious , demanding and unproductive task ). In such a similar scenario as well , a machine learning algorithm also needs multiple directions , multiple interjections in order to facilitate the smooth running and execution of a program .

 

*     So even after the completion of the learning process , a machine learning classifier often cannot unequivocally map the examples to the target  classification because many false and erroneous mappings are possible which could mar the generation of best possible results and then render the learning process ineffective as the learning algorithm in its path to effective learning picks up erroneous and wrong paths and lands up adding insufficient data points to discover the right function . In addition to this , conditions of noise ( this aspect is also a great factor in machine learning ) also affect the process of learning

 

*  In real world as well , Noise plays a same kind of impediment factor in the process of learning which derides the effective learning mechanism . Similarly , many such extraneous factors and errors also occur which during the process  of recording of the data which distort the values and features to be read and understood . In true sense , therefore it is considered that a good machine learning algorithm should distinguish the signals that can map back to a target function even though extraneus environmental noise is still in play .

 

Last modified: 27 Apr 2021

Thursday, April 1, 2021

"Apply()" Command for finding Summaries on Rows / Columns of a Matrix or Dataframe Object

 


"Apply()" Command for finding Summaries on Rows / Cols

=======================================================

* The "ColMeans()" and "RowSums()" command are designed as quick alternatives to a more generalised command "Apply()"

 

* The "apply()" command enables one to apply a function to rows or columns of a matrix or a dataframe

 

* The general form of the "Apply()" command is given in the following manner :

apply(X,margin,FUN,....)

 

In this command , the applicable MARGIN within the parameter is either 1 or 2 where 1 is for the rows and 2 is for the columns applicable for the dataframe

 

* One can replace the "FUN" part within the parameter of the apply() function and one can also add additional instructions which might be appropriate to the command / function that one is applying

 

* Example :

One might add the parameter "na.rm = TRUE " as an instruction to the apply function .

> mat01

     [,1] [,2] [,3] [,4]

[1,]    1    2    3    4

[2,]    5    6    7    8

[3,]    9   10   11   12

[4,]   13   14   15   16

 

> apply (mat01 , 1 , mean , na.rm = TRUE )

[1]  2.5  6.5 10.5 14.5

 

* In such a case , one can see that the row names of the original dataframe are displayed as output .

 

* If the dataframe has no set row names , then one will see the result as a vector of values .

 

> apply (fw , 1 , median , na.rm = TRUE )

2.5  6.5 10.5 14.5

 



Monday, March 15, 2021

Example of Inheritance Concept ( in OOPS ) in Python

 

 

Example of Inheritance in Python

 

* In Python lets assume that , one can take a class A with two variables 'a' and 'b' and a method like method01() in the given manner .

 

* Since all the methods are needed by another class B , one can extend class B from class A .

 

* If we want some additional members in object B , for example a variable 'c' and a method in the form of method02() . These methods are written in object B .

 

* From this one would remember that class B can use all the members of both A and B .

 

* This means that all the variables 'a' , 'b' , 'c' and the methods method01() and method02() are available to the class B . This means that all the members of class A are inherited by class B .

 

<< FIG >>

 

 

* By creating an object of B , one can access all the members of both the classes A and B that is when an object of class B is created which is a form of derived class object , from the base class , one can create another object .

 

Thursday, December 10, 2020

How Bitcoin Works and why is bitcoin so popular

How Bitcoin Works and why is bitcoin so popular

* Value of Bitcoin in 2010 = 0 INR

* Value of Bitcoin in 2020 = 15 lakhs INR

* Bitcoin has reached its all time highest price margin in the year 2017

* In 2008 , a paper was published by Satoshi Nakamato in which the abstract about Bitcoin was mentioned in which a purely peer-to-peer version of electronic cash that would allow online paymentsto be sent directly from one party to another without going through a financial institutions . In this format , digital signatures provide part of the solution , but the main benefits are lost if a trusted third party is required to prevent double spending

.* Some years before Cryptocurrency was a new concept that was started to undergo financial transactions not controlled by financial institutions around the world but with due course of time

* Crypto-Currency variant Bitcoin doesn't have any central authority or point of control ; the way Indian National Rupee is controlled by RBI , American Dollar is controlled by USA Central bank or Federal Reserve Bank

* Some years before Cryptocurrency like Bitcoin , Ethereum , Litecoin were just an idea but now it has become a global phenomenon with thousands / millions / billions worth of trading over the same .

* In order to understand fully well the concept of Bitcoin and Cryptocurrency one needs to dig deeper into the Economic and Trading System of the past

* The established financial systems in place are based on the premise of trust and cooperation between the public and the government with banks playing the middlemen entrusted with carrying out issuing and authorization of money

* The entire economic system has been built over bullion value of money that is the amount of gold / silver held in reserve with a financial institution of a country . But as because it was impractical and risly to carry gold safely and use it as a medium of exchange over any transaction in a day to day manner , because of which cash as a convenient and eassier medium of transaction was created sothat ease of transaction and business could be carried out .

* When a depositor deposits money in a bank , the bank gets the authority to play around with your deposited money in whichever manner the banks want . They lend the deposited money to companies and individuals in the form of loans because of which these companies put the money into business or developmental activities and because of the profit accrued by the companies , the banks get interest due to the profitable ventures of the companies for which the money had been lent for and because of which the individuals get interest over their invested money .

* Recently it has come to light , how the banks handle the money in very irresponsible ways by lending big big amount of money to industrialists and big companies which swindle the money by not able to do justice to the lent money for which the money becomes bad debt , NPAs for the bank and thus the bank and the investor/depositor both suffer the consequences for having invested in such banks

* For these specific reasons , the people behind the concept of cryptocurrency and bitcoin did not want the financial institutions aided by the governments have so much authority and control over the monetary and financial system and thus crypto-currency was launched as an alternative economic and financial system for people as depositors which would be also out of the purview of control by the authorities .

* How do Crypto-currencies work ? In order to fully understand the working and functioning of the operation behind Crypto-currency , the user has to have a thorough understanding of the concepts of advanced mathematics and computer science theories and concepts . But if someone wants to start trading and investing , then one may not have in-depth understanding of the required paradigms rather a general knowledge of some of the underlying concepts would do

* All the transactions related to these various formats of crypto-currencies is tracked and recorded in a ledger .This ledger is available for viewing to all the people / participants under the bitcoin mining system . The people who run these systems are called as Miners . Their work is to verify the various transactions happening over the entire transaction chain .

* Suppose a Bitcoin transactioner wants to transfer 2 bitcoins to another person in the participative blockchain network , then the duty of the Miner governing the process is to confirm the number of bitcoins held by the operants and check that the transaction gets to successful completion , but for this the miner has to solve a complicated mathematical equation

* The work of the miner is to identify the individual variables of the transaction process . This is not undertaken in a pen and paper equation solving procedure rather this is solved programmatically over computers and servers which have combinations in the form of thousands and millions .And for this process to be effectively carried out , the miners need complex and highly powerful computing systems .Once the equation is solved m the variables for the equation get added to the network and the underlying transaction process are all added to the network in the form of a chain . And when this process of creation and registration of the problem has been carried out effectively the entire module of transactions and its records become a block which is called a blockchain . In the process , miners get bitcoin as a reward of their endeavours .The miners have to do a proof of work in order to complete the process of minting or carrying out the transaction process .

* However , even if the underlying core methodologies and process of Cryptocurrency and Crypto-Technology are not understood .. its important to learn the philosophy , vision and future of crypto-currency .

* So , how to use this Crypto-Currency and Bitcoin technology .. as these days some people use Bitcoin as a form of investment not within the jurisdiction of financial institutions and some people use it as a form of alternate currency and there are some who want to replace the usage of standard currencies such as dollar , pounds , yen , rupee and bring bitcoin into usage .

* So , main usage of Bitcoin and Cryptocurrency is in the form of a store of value where bullion would be kept stored as a digital locker . For this reason , bitcoin is also called as a Digital Gold . And there is always an amount of risk associated with bitcoin , as many people consider Bitcoin as a form of Digital Currency and not inherently as a form of standard currency as everything and all operations over bitcoin is governed and controlled by computers and algorithms , and thus it has not yet gained wide acceptance as a standard form of currency which can be used in general stores .

* However , it is being said and projected that in the very near future Bitcoin could be started as a medium of exchange between various parties as many western countries have started accepting bitcoin as a medium of transaction between different parties .

* Due to many technical challenges associated with Bitcoins , acceptance of Bitcoin as a form of legitimate and easy form of currency has not yet gained much traction . In Bitcoin , all transactions go through time consuming process of verification of transactions post any form of transaction is done because of which acceptability and widespread use has not yet been adopted for it .

* But in some cases , bitcoins have already evolved as a good means of currency exchange like in the case of foregin funds transfer . Here , in this case , many banks often charge a very high fees in the name of foreign funds transfer and in many situations , sometimes a lot of money is charged as processing fee for such kind of transfers when transfer between one country to another country takes place . As there is no processing fee for any such processes and there is not any underlying great amount of time for processing like banks do when they take over 1 to 2 days for a transaction to be over because of which Remittance service companies like Western Union are under a threat of closure and same goes for some banks which process heavy charges for remittances overseas .

* A similar process also exists for credit-card services and credit card handling charges . Because of all these banks have been against standardisation and acceptance of crypto-currencies as standard mediums of exchange and currency transactions as limitations and banking procedures and payment processing were a blocking factor which Crypto-currencies identified and tried to put a stop over it , so that financial institutions such as banks ' hegemony could be broken .Recognising this as a form of threat , Banking systems and institutions did not want regulating banks and governments all over world to accept cryptocurrencies as a standard mode of exchange .

* As per reports , during the covid pandemic situation across the globe , the stock markets have felt shocks as share prices of some stocks dwindled ,mutual funds run by banks got greatly affected but in contrast to this the prices of bitcoin has kept going up and over during the ongoing crisis time as well and it is being forecasted that , the price of bitcoin has surged to an all time high even during the pandemic time and it is also being said that bitcoins price is going to escalate even higher .

* As per Reports , from 1st March 2020 to 30th November 2020 , price of Bitcoin has increased around 150% .World's largest digital payments company Paypal introduced the feature of payment processing through the form of Bitcoin and crypto-currency during november 2020 . World's largest bank J.P. Morgan has also started accepting transactions in the form of Crypto-currency which is a major turn of events as JP Morgan was earlier not in favour of accepting Bitcoin and Crypto-currency as a form of currency exchange across any country or the world .

* So , now it can be observed that there has started a new form of open-mindedness about Crypto-currencies and thus its acceptability has increased across the world and financial institutions as a standard form of monetary and currency exchange

* As per collected reports and experiences , there has been a steadfast increase in the general mindset over usage of Crypto-currency as a standard mode of exchange . In 2018 , the RBI ( Reserve bank of India), the central and regulating bank of India had issued a circular to regulated financial institutions and entities to ban dealing in virtual and crypto-based currencies leading to which Indians in general were restricted the usage of INR - Indian National Rupee as a form of currency for exchange in buying and selling of crypto-currencies leading to which cryptocurrency traders were restricted usage of Indian Banks to take loans and trade in any form of crypto-currency .So all traders running Crypto-currency platforms were not able to run their errands .. like they were not able to pay salaries to their employees , they were not able to do day-to-day transactions with this medium of exchange .

* So the question here that rises is why RBI had issues such a type of restrictive ban on the usage of Crypto-currency as a form of exchange sighting issues such as money laundering and security issues as In the Dark Web form of internet people has started accepting bitcoins as medium of exchange for drugs and ammunitions and as such law enforcement agencies work had become tougher to track these sort of transactions and the parties operating over the same format as these were outside the purview of financial systems as tracking was a problem noticed under these form of exchanges .

* Another main reason why crypto-currency was not taken as an accepted form of monetary exchange was because there were cases of fraud noticed because of such crypto-currencies where public could be swindled by fraud and illegitimate companies as genuine operating platforms and draw in money on the premise of operable trading platforms , where people could get cheated and duped of their money .Such a kind of cheating and fraud case was noticed in a case of a guy named Amit Bharadwaj who duped investors a whopping 2000 crores worth of Indian money by claiming investors in his company that he would pay double or triple the amount invested in his operable trading platform as he had opened bitcoin minting farms across China and was running huge amount of profits due to his bitcoin minting platforms .But at last , all his claims and promises to investors were found out to be false and untrue , and by running this fraud he was successfully able to dupe 2000 crore amount of money from investors and got out of India . Now as per reports , it has come to picture that he had been arrested by Delhi Police and now is out on bail and the case is pending in court . Citing all these reasons , many of the fraudsters involved in exchange of cryptocurrency were forced to shutdown which blamed institutional banking ban on their usage platforms , many of the petition holders sought legal counsel for help but turned down as most of the advocates were also apprehensive taking up the case due to the legalities and sanctions framed by the monetary regulating body of RBI . After all these hiatus , finally in January 2020 , before a three-bench judge seating panel the apex court of India , Supreme Court ruled in favour of legalising Cryptocurrency as a mode of exchange thus lifting the ban imposed by RBI (Reserve Bank of India) , citing RBI's plea for banning Cryptocurrency was a disproportionate plea as their claim that Cryptocurrency would be a affecting factor to Indian Economy and Indian Monetary Control Laws , and thus the case was dropped and ruling in favour of legalising Cryptocurrency as an alternative form of Currency was adopted in the starting of 2020 . Therefore in the direction of adoption of Cryptocurrency as a legal and alternative form of currency was adopted in 4th March 2020 and there are no restrictive laws to be placed by the judiciary body on trade over these forms of currency .

* Because of reasons such as these , and judicious execution of monetary plans by RBI , general mindset about investment in these sort of crypto-currencies was still under the hood as it lacked accountability and proper authority .However , as more and more countries and financial institutions and general population has started adopting to crypto-currency , the picture for it has begun developing traction . So , now Indians can now invest in Crypto-Currency without facing any legal ban .

* But advice to the ones seeking this new concept as a medium of investing is that , invest as much as a person can risk losing and do not take loans from any other party , institution to buy shares of these as cryptocurrencies are still volatile and value of its shares can be seen to surge and fall and there is no guarantee that the price of its shares will keep moving up and investors will keep receiving high returns over this investment . So even if there is an opportunity for making big profits , there are still chances of losing , so it all depends upon the risk taking ability of the investor which is again a similar form of intraday trading as observed in share markets . So again it boils down to risk appetite of the investor aimed towards personal investment and profit goals