qlib | Qlib is an AI-oriented quantitative investment platform that aims to realize the potential, empower | Cryptocurrency library

 by   microsoft Python Version: v0.9.1 License: MIT

kandi X-RAY | qlib Summary

kandi X-RAY | qlib Summary

qlib is a Python library typically used in Blockchain, Cryptocurrency applications. qlib has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can install using 'pip install qlib' or download it from GitHub, PyPI.

The detailed documents are organized in docs. Sphinx and the readthedocs theme is required to build the documentation in html formats. You can also view the latest document online directly. Qlib is in active and continuing development. Our plan is in the roadmap, which is managed as a github project.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              qlib has a medium active ecosystem.
              It has 11243 star(s) with 1997 fork(s). There are 264 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 192 open issues and 534 have been closed. On average issues are closed in 120 days. There are 21 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of qlib is v0.9.1

            kandi-Quality Quality

              qlib has 0 bugs and 0 code smells.

            kandi-Security Security

              qlib has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              qlib code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              qlib is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              qlib releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              qlib saves you 7200 person hours of effort in developing the same functionality from scratch.
              It has 32078 lines of code, 2672 functions and 247 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed qlib and discovered the below as its top functions. This is intended to give you an instant insight into qlib implemented functionality, and help decide if they suit your requirements.
            • Run the model
            • Generate the mean and standard deviation table
            • Generate a markdown table
            • Calculate the mean and standard deviation
            • Fit the model
            • Get or create path
            • Decorator to filter keyword arguments
            • Generates a TradeDecisionWO
            • Epsilon change in time
            • Fit the model to the given dataset
            • Calculates the percentile of the predicted data
            • Rebase the feature storage
            • Mount NFS uri
            • Perform rolling processing
            • Generate order list based on target weight
            • Update qlib data to bin
            • Query for a period feature
            • Add data to stock
            • Report a pandas dataframe
            • Update the dataset
            • Dump data to a table
            • Shortcut for long - test
            • Returns a list of the risk analysis figures
            • Generates the order of the outer trade
            • Get figure graph for cumulative return
            • Load a dataset from the server
            Get all kandi verified functions for this library.

            qlib Key Features

            No Key Features are available at this moment for qlib.

            qlib Examples and Code Snippets

            Data Preparation-Automatic update of daily frequency data
            Pythondot img1Lines of Code : 2dot img1License : Permissive (MIT)
            copy iconCopy
            **It is recommended that users update the data manually once (\-\-trading_date 2021-05-25) and then set it to update automatically.**
            For more information refer to: `yahoo collector `_
            python scripts/data_collector/yahoo/collector.py update_data_to_b  
            Qlib Frequently Asked Questions
            Pythondot img2Lines of Code : 0dot img2License : Permissive (MIT)
            copy iconCopy
            1. RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase...
            ----------------------------------------------------------------------------------------------------------------------  
            File-based design for PIT data
            Pythondot img3Lines of Code : 0dot img3License : Permissive (MIT)
            copy iconCopy
            # the data format from XXXX.data
            array([(20070428, 200701, 0.090219  , 4294967295),
                   (20070817, 200702, 0.13933   , 4294967295),
                   (20071023, 200703, 0.24586301, 4294967295),
                   (20080301, 200704, 0.3479    ,         80),
                   (20080  
            qlib - model
            Pythondot img4Lines of Code : 431dot img4License : Permissive (MIT License)
            copy iconCopy
            # Copyright (c) Microsoft Corporation.
            # Licensed under the MIT License.
            
            import os
            import copy
            import math
            import json
            import collections
            import numpy as np
            import pandas as pd
            
            import torch
            import torch.nn as nn
            import torch.optim as optim
            import t  
            qlib - tft model
            Pythondot img5Lines of Code : 288dot img5License : Permissive (MIT License)
            copy iconCopy
            # coding=utf-8
            # Copyright 2020 The Google Research Authors.
            #
            # Licensed under the Apache License, Version 2.0 (the "License");
            # you may not use this file except in compliance with the License.
            # You may obtain a copy of the License at
            #
            #    
            qlib - run all model
            Pythondot img6Lines of Code : 264dot img6License : Permissive (MIT License)
            copy iconCopy
            #  Copyright (c) Microsoft Corporation.
            #  Licensed under the MIT License.
            
            import os
            import sys
            import fire
            import time
            import glob
            import yaml
            import shutil
            import signal
            import inspect
            import tempfile
            import functools
            import statistics
            import subp  

            Community Discussions

            QUESTION

            Set slaves for jupyterq
            Asked 2019-Aug-13 at 07:08

            I am running Q in jupyter. To enable multiple slaves, jupyter requires to be run with parameter -s.

            How can I launch a kernel in jupyerq with slaves enabled? I tried passing '-s 20' into argv here in the runkernel.py, but the kernel wouldn't start at all

            ...

            ANSWER

            Answered 2019-Aug-13 at 07:08

            You can do this as follows:

            1. Find the location of your kernel.json file for qpk by running

            Source https://stackoverflow.com/questions/57469992

            QUESTION

            SQL code for search option in a php web page
            Asked 2019-Feb-13 at 19:11

            I have tried to write the search.php file for an online library web page. This is what I have done , I can search books by titles ,but I also want to search them by author or description

            ...

            ANSWER

            Answered 2019-Feb-13 at 19:11
            SELECT * FROM book_description 
            JOIN book_class ON book_class.series = book_description.series 
            WHERE book_description.title LIKE "%'.$category.'%"'
            and (or) book_description.author like "%'.$author.'%"'
            ... 
            and so on
            

            Source https://stackoverflow.com/questions/54677463

            QUESTION

            Regular expression doesn't produce expected result
            Asked 2019-Jan-17 at 16:27

            I use Python 2.7 re findall to find match case list, but the first case get more than I want.
            My source code is here, find some import data from a long strings.

            Result list is:

            ...

            ANSWER

            Answered 2019-Jan-16 at 16:21

            UPDATE

            If you insist on using a regex to track the failures, you could do something like the following:

            Source https://stackoverflow.com/questions/54220718

            QUESTION

            Reading/writing a resultcode in Android
            Asked 2018-Jul-19 at 18:42

            In have a problem either with reading the resultcode of an Activity or writing the resultcode in the SharedPreferences.

            The app is a quiz which should show the player's highscore.

            Frist my Start Menu Activity:

            ...

            ANSWER

            Answered 2018-Jul-19 at 18:42

            First you need to change the code in the onFinish() method:

            Source https://stackoverflow.com/questions/51429283

            QUESTION

            Multiple Choice Quiz in Python: how to assign number labels to dictionary random.sample output
            Asked 2018-Apr-26 at 05:50

            Qlib is a dictionary of question:answer pairs like this:

            ...

            ANSWER

            Answered 2018-Apr-24 at 22:36

            You question is a bit difficult to understand but I guess you tried to check whether the user's answer is the same as the randomly picked value. If that's the case then this would do:

            Source https://stackoverflow.com/questions/50010600

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install qlib

            This quick start guide tries to demonstrate. Here is a quick demo shows how to install Qlib, and run LightGBM with qrun. But, please make sure you have already prepared the data following the instruction.
            It's very easy to build a complete Quant research workflow and try your ideas with Qlib.
            Though with public data and simple models, machine learning technologies work very well in practical Quant investment.
            This table demonstrates the supported Python version of Qlib: | | install with pip | install from source | plot | | ------------- |:---------------------:|:--------------------:|:----:| | Python 3.7 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | Python 3.8 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | Python 3.9 | :x: | :heavy_check_mark: | :x: |.
            Conda is suggested for managing your Python environment.
            Please pay attention that installing cython in Python 3.6 will raise some error when installing Qlib from source. If users use Python 3.6 on their machines, it is recommended to upgrade Python to version 3.7 or use conda's Python to install Qlib from source.
            For Python 3.9, Qlib supports running workflows such as training models, doing backtest and plot most of the related figures (those included in notebook). However, plotting for the model performance is not supported for now and we will fix this when the dependent packages are upgraded in the future.
            QlibRequires tables package, hdf5 in tables does not support python3.9.
            Users can easily install Qlib by pip according to the following command.
            Also, users can install the latest dev version Qlib by the source code according to the following steps:. Tips: If you fail to install Qlib or run the examples in your environment, comparing your steps and the CI workflow may help you find the problem.
            Before installing Qlib from source, users need to install some dependencies: pip install numpy pip install --upgrade cython
            Clone the repository and install Qlib as follows. git clone https://github.com/microsoft/qlib.git && cd qlib pip install . Note: You can install Qlib with python setup.py install as well. But it is not the recommanded approach. It will skip pip and cause obscure problems. For example, only the command pip install . can overwrite the stable version installed by pip install pyqlib, while the command python setup.py install can't.

            Support

            Join IM discussion groups: |Gitter| |----| ||.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link