Noah  Rowe

Noah Rowe

1595045100

Don’t look backwards, LookAhead!

The task of an optimizer is to look for such a set of weights for which a NN model yields the lowest possible loss. If you only had one weight and a loss function like the one depicted below you wouldn’t have to be a genius to find the solution.

Image for post

Unfortunately you normally have a multitude of weights and a loss landscape that is hardly simple, not to mention no longer suited for a 2D drawing.

Image for post

The loss surface of ResNet-56 without skip connections visualized using a method proposed in https://arxiv.org/pdf/1712.09913.pdf.

Finding a minimum of such a function is no longer a trivial task. The most common optimizers like Adam or SGD require very time-consuming hyperparameter tuning and can get caught in the local minima. The importance of choosing a hyperparameter like learning rate can be summarized by the following picture:

Image for post

Too big learning rate causes oscillations around the minimum and too small learning rate makes the learning process super slow.

The recently proposed LookAhead optimizer makes the optimization process

less sensitive to suboptimal hyperparameters and therefore lessens the need for extensive hyperparameter tuning.

It sounds like something worth exploring!

The algorithm

Intuitively, the algorithm chooses a search direction by looking ahead at the sequence of “fast weights” generated by another optimizer.

The optimizer keeps two sets of weights: fast weights θ and slow weights ϕ. They are both initialized with the same values. A standard optimizer (e.g. Adam, SGD, …) with a certain learning rate η is used to update the fast weights θ for a defined number of steps k resulting in some new values θ’.

Then a crucial thing happens: the slow weights ϕ are moved along the direction defined by the difference of weight vectors θ’- ϕ. The length of this step is controlled by the parameter α — the slow weights learning rate.

#machine-learning #neural-networks #gradient-descent #deep-learning #ai #deep learning

What is GEEK

Buddha Community

Don’t look backwards, LookAhead!
Q  & As

Q & As

1629476205

How to write SQL to Find Datetime ?

Hello

Need to write sql to find datetime between start_Dt and end_Dt so that i can count id to show that id can be counted during that hour.

 create table #t( id int, start_Dt datetime, end_dt datetime)
    
 insert into #t values (101, '2021-07-31 22:40:00.000','2021-08-01 01:23:00.000')
 insert into #t values (102, '2021-08-01 10:42:00.000','2021-08-01 17:15:00.000')
    
 select * From #t


 

Need to count that 101 was waiting at 
2021-07-31 22:00:00.000, 
2021-07-31 23:00:00.000, 
2021-08-01 00:00:00.000,
2021-08-01 01:00:00.000

where as id 102 was waiting at 
2021-08-01 10:00:00.000, 
2021-08-01 11:00:00.000,
2021-08-01 12:00:00.000,
2021-08-01 13:00:00.000,
2021-08-01 14:00:00.000,
2021-08-01 15:00:00.000,
2021-08-01 16:00:00.000,
2021-08-01 17:00:00.000

could you please help me to write the sql script to get the result.

 

What is Don-key Finance (DON) | What is Don-key Finance token | What is DON token

In this article, we’ll discuss information about the Don-key Finance project and DON token

Don-key is reducing the entry barrier for both yield farmers and liquidity providers, opening the DeFi world for two distinct groups of people: those with low investment funds and those who cannot dedicate themselves to mastering the skills and strategies needed to participate in the DeFi world.

Social trading meets yield farming

Project Mandate:

Don-key is the first social platform that brings together yield farmers with liquidity providers.

● Don-key enables potent yield farmers to maximize the assets under their management while generating profit volume for farmers and the investors.

● Don-key is an entry platform for the inexperienced or low capital individual who wishes to enter the DeFi world. Our vision is to provide yield farmers and investors with a gamified social trading experience and with a seamless planning tool and positions, while offering farmers abundant liquidity with which to execute their strategies.

Key features:

● “Copy Farming” - Learn and auto-invest on latest farming opportunities by following top farmers and browsing Don-key’s strategy builder.

● Strategy Builder - A drag-n-drop interface to easily plan and optimize different farming scenarios.

● Farmer Reputation - Based on proven APY results and historical track record.

● Investor Reputation – Through their participation on Don-key, investors earn a reputation within the platform, unlocking extra layers of access to the highest Alpha opportunities.

● Top farmers and liquidity providers are rewarded with governance tokens.

● Non-custodial pools to save substantial gas by pooling investments with other investors who provide liquidity to the same protocols

Don-key’s Strategy builder:

A drag and drop 0-code visual interface built for yield farmers.

  • Easy to implement strategies with functions such as automated take profit/stop loss, conditional commands, and automated cash out conditions.

  • Easily integrate with cross-chain protocols like Ren and plan a blockchain agnostic yield flow. - Auto reinvest harvested profits to compound gains.

  • Automated calculation of different APYs from different pools and protocols on the same UI.

  • Access to one-click insurance quotes for your APY flow.

  • Thought of something we didn’t? Upload your code directly to the builder and gain a competitive edge

Imagetrading

Don-key Farmer:

We believe that yield farmers are at the frontier of the DeFi revolution and we are here to support them.

Don-key’s platform allows our modern farmers to become rock stars!

To raise liquidity from various liquidity providers and trade on their behalf.

To build multiple strategies and become an autonomous hedge fund by gaining commission from the collective yield of your strategies.

To transfer liquidity from different protocols with nearly zero fees. To create a farmer profile representing your farming philosophy, your way of thinking, and your proven yield.

Don-key believes in transparency, but it is up to our farmers if they want to disclose the blueprints of their strategies or keep them private. Farmers can also do a combination, displaying some basic blueprints and keeping the more advanced strategies for select high roller investors with hidden wallets.

Don-key is the long-awaited toolbox that offers yield strategists a way to collect capital in order to apply DeFi strategies efficiently, scaling up their assets under choice management. Ultimately, the goal is to achieve a minimal fee structure and maximal profit opportunity.

Risk scores:

Everyone loves a good yield, but we all have a different approach towards risk.

Don-Key yield farmers are rated using a proprietary Sortino Ratio algorithm that scores a portfolio’s risk-adjusted returns relative to an investment target using downside risk.

We are in the process of improving the algorithm under modern portfolio theory so it meets DeFi standards and platform needs.

To make our investors’ lives easier and build a true table of comparison between different strategies, every strategy has an associated risk score. This score is represented by a number between 1 and 10, where 1 is low risk and 10 is high risk. The initial risk score is set when the first strategy is deployed, and updated as more strategies are added to the farmer’s profile.

The Don-key team looks at a variety of risk factors to assess the risk score using the unique risk model score.

There are a few parameters when it comes to measuring risk including: the category of the underlying asset (stable or speculative), leverage risk (borrowing ratio), the daily volume of the underlying asset, and more.

Don-key’s Investors

Don-key’s platform allows investors to be active within various aspects of the platform.

Governance – Investors will be able to rate farmers by on-chain voting, evaluating not only a farmer’s APY or APR results, but also his/her communication skills in offering strategy explanations or macro insight within the platform.

Capital combination / capital assignment – Investors can create thematic funds using multisig programmatically created wallets and assign capital to one or more yield farmers under a closed-end fund mandate with distinctive profit and fee management rules.

Multi-layered investor access – Investors will have the ability to unlock multiple layers of access based on their tokens staked, their interaction with the platform, and their participation within governance structures.

Whether you are a sophisticated investor or just an average joe, you can invest with the best and add liquidity to any yield farmer.

Investors can easily monitor the strategy’s performance from Don-key’s platform and move liquidity between farmers and strategies with nearly zero fees.

Thanks to Don-key analytics and the transparent nature of the blockchain, investors can track exactly what trades a farmer has made. The investor can also see what assets are currently in each farmers strategy pool.

Don-key is also positioned to satisfy the high net-worth individual who wishes to be involved with performing yield generation strategies with maximum time efficiency and without the cost-ineffective processes involved in this type of activity in traditional finance.

Fees:

Currently, the fee for the Don-key platform is set to 5% of gains and zero fees on assets under management. Those fees get accrued on a FeeTreasury contract called ‘The Smelter,’ which is governed by the governance token. Farmers can decide their own strategy fee structure including: deposit fee, exit fee, management fee and success fee. To protect investors, only farmers with a proven track record may implement deposit and exit fees.

Don-key’s Developers:

DeFi is changing all the time and our mission is to provide a large number of protocols and other tools in order to provide the richest, most up-to-date work environment for our farmers. To this end, we will offer all developers the option to add protocols, tools, and features. The external developers will be incentivized by $DONs.

Don-key’s team will launch the MVP with integrations focused on BSC and touch most aspects of the ecosystem in order to provide a POC on how the marketplace can function:

Exchange and liquidity: Pancakswap

Earn and Aggregators: BeefyFinance, AutoFarm

Credit and Lending: Venus

Cross chain: Binance Bridge

Stablecoin: bDollar

After the launch, Don-key will operate on an open source base that will encourage any developer to add protocols, chains, functions, and tools.

All additions to the code will need to be approved by a vote of the governance token holders.

As seen in the tokenomics below, 10% of tokens from TGE will be reserved for development bounties and rewards in the following manner:

Released in a linear manner for a period of 36 months. The total fixed daily amount will be released to the developer’s wallets pro rata according to the total volume used through each one of the protocols, chains and functions created. This way we encourage developers to create things that they believe users will really need and use.

After said 36 month period, additional developments will be funded by the Smelter contract.

DON Tokens

DON tokens are airdropped to all farmers based on monthly trading results and take into account: ROI, Risk level, asset exposer and more. The better you are, the more you get.

Yield and Dividend

DON tokens represents the farmer’s yield based on his own strategies, in addition to a proportionate monthly dividend from Don-key’s total monthly yield.

Exchangeable

You can redeem your DON tokens at any time or hold on to them and accumulate higher future coupons.

$DON is the native token of the Don-key platform.

Overview:

● Token Name: Don-key token

● Ticker: $DON

● Type: ERC20

● Total Supply: **100M **

Use Cases:

Staking & Rewards: $DON holders can earn passive income from their tokens by holding them in staking wallets, as well as in Don-key liquidity pools to be launched on several DEX platforms.

Governance: $DON holders can gain voting rights on the platform, by staking a predefined amount of tokens in their specified staking wallets. By doing so, they can participate in the community’s decision-making process, regarding matters such as new proposals,new integrations, pool audits, circulation, distribution, and so on. Moreover, governors will also have a say on DON’s on-chain governance model.

● In addition, $DON holders will be able to provide reviews on farmers and approve new integrations.

● $DON holders will receive priority whitelist access, enabling them to follow the best farmers.

● All rewards and incentives for participating on the Don-key platform (the development bounty, early adopters, early liquidity providers, etc.) will be offered in $DON tokens.

● Access to exclusive pools: Farmers can decide to limit specific strategies to $DON holders only.

● Reduced commission on strategy pools.

● All fees and yields of the platform are collected in the pool (ETH, BTC, USDC, etc.), according to the farmer’s strategy. Don-key’s 5% commission will then be transferred, or, if necessary, bridged and then transferred, to different DEXs on the ERC-20 network using our ‘Smelter’ contract, in order to buy $DON tokens. The $DONs will be stored in the treasury and delivered to different participants of the platform according to the reward and incentivization plan. This will increase demand and increase the inner value of the token as a utility within the platform

How and Where to Buy DON token ?

You will have to first buy one of the major cryptocurrencies, usually either Bitcoin (BTC), Ethereum (ETH), Tether (USDT), Binance (BNB)…

We will use Binance Exchange here as it is one of the largest crypto exchanges that accept fiat deposits.

Binance is a popular cryptocurrency exchange which was started in China but then moved their headquarters to the crypto-friendly Island of Malta in the EU. Binance is popular for its crypto to crypto exchange services. Binance exploded onto the scene in the mania of 2017 and has since gone on to become the top crypto exchange in the world.

Once you finished the KYC process. You will be asked to add a payment method. Here you can either choose to provide a credit/debit card or use a bank transfer, and buy one of the major cryptocurrencies, usually either Bitcoin (BTC), Ethereum (ETH), Tether (USDT), Binance (BNB)…

SIGN UP ON BINANCE

Step by Step Guide : What is Binance | How to Create an account on Binance (Updated 2021)

Next step - Transfer your cryptos to an Altcoin Exchange

Once finished you will then need to make a BTC/ETH/USDT/BNB deposit to the exchange from Binance depending on the available market pairs. After the deposit is confirmed you may then purchase DON from the website: https://don-key.finance/

The top exchange for trading in DON token is currently 

There are a few popular crypto exchanges where they have decent daily trading volumes and a huge user base. This will ensure you will be able to sell your coins at any time and the fees will usually be lower. It is suggested that you also register on these exchanges since once DON gets listed there it will attract a large amount of trading volumes from the users there, that means you will be having some great trading opportunities!

Top exchanges for token-coin trading. Follow instructions and make unlimited money

https://www.binance.com
 ☞ https://www.bittrex.com
 ☞ https://www.poloniex.com
 ☞ https://www.bitfinex.com
 ☞ https://www.huobi.com

Find more information DON

WebsiteWhitepaperSocial ChannelSocial Channel 2Message BoardCoinmarketcap

🔺DISCLAIMER: The Information in the post isn’t financial advice, is intended FOR GENERAL INFORMATION PURPOSES ONLY. Trading Cryptocurrency is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money.

🔥 If you’re a beginner. I believe the article below will be useful to you

⭐ ⭐ ⭐ What You Should Know Before Investing in Cryptocurrency - For Beginner ⭐ ⭐ ⭐

I hope this post will help you. Don’t forget to leave a like, comment and sharing it with others. Thank you!

#blockchain #bitcoin #don #don-key finance

Noah  Rowe

Noah Rowe

1595045100

Don’t look backwards, LookAhead!

The task of an optimizer is to look for such a set of weights for which a NN model yields the lowest possible loss. If you only had one weight and a loss function like the one depicted below you wouldn’t have to be a genius to find the solution.

Image for post

Unfortunately you normally have a multitude of weights and a loss landscape that is hardly simple, not to mention no longer suited for a 2D drawing.

Image for post

The loss surface of ResNet-56 without skip connections visualized using a method proposed in https://arxiv.org/pdf/1712.09913.pdf.

Finding a minimum of such a function is no longer a trivial task. The most common optimizers like Adam or SGD require very time-consuming hyperparameter tuning and can get caught in the local minima. The importance of choosing a hyperparameter like learning rate can be summarized by the following picture:

Image for post

Too big learning rate causes oscillations around the minimum and too small learning rate makes the learning process super slow.

The recently proposed LookAhead optimizer makes the optimization process

less sensitive to suboptimal hyperparameters and therefore lessens the need for extensive hyperparameter tuning.

It sounds like something worth exploring!

The algorithm

Intuitively, the algorithm chooses a search direction by looking ahead at the sequence of “fast weights” generated by another optimizer.

The optimizer keeps two sets of weights: fast weights θ and slow weights ϕ. They are both initialized with the same values. A standard optimizer (e.g. Adam, SGD, …) with a certain learning rate η is used to update the fast weights θ for a defined number of steps k resulting in some new values θ’.

Then a crucial thing happens: the slow weights ϕ are moved along the direction defined by the difference of weight vectors θ’- ϕ. The length of this step is controlled by the parameter α — the slow weights learning rate.

#machine-learning #neural-networks #gradient-descent #deep-learning #ai #deep learning

Wanda  Huel

Wanda Huel

1601312400

ML: Student’s, Two-Sample & Paired Sample T-tests. Don’t Use It Blindly.

In Z-test, we assume we know the standard deviation of the population. What if we don’t know the standard deviation of the population? In this case, we assume the standard deviation of the sample distribution and keep going with Z-test. What if we don’t know the mean of the population? We can similarly somehow assume the mean and go with Z-test. When do we use a t-test? We use a t-test when the sample size is small. How small is small? We are using CLT(Central Limit Theorem) and it works well when the sample size is large enough. Since the sampling distribution should be Gaussian Distribution. If the sample size is too small, then this assumption starts to break apart, it does not follow Gaussian Distribution. It follows the heavy tail distribution, t-distribution.

Notes: The assumption is that the standard deviation of samples and populations is the same. We are trying to find out the difference in the mean of samples and populations. However, ANOVA doesn’t assume the standard deviation is the same. I will cover ANOVA also in the later posts.

#machine-learning #bioinformatics #data-science #two-sample-t-test #t-test

Rylan  Becker

Rylan Becker

1631862554

Guide to using SQL Server SUM T-SQL Function in 5 Use Cases

In this article multiple use cases of SQL SUM function with other clauses are described. Examples with screenshots are enclosed.

#t-sql #t-sql