thorwhalen / aix Goto Github PK
View Code? Open in Web Editor NEWArtificial Intelligence eXtensions
License: Apache License 2.0
Artificial Intelligence eXtensions
License: Apache License 2.0
The desired effect is that of:
from aix.pd import *
from aix.np import *
from aix.sk import *
from aix import pd
from aix import np
from aix import sk
but with dynamic control.
That is, this should be configurable from a local file that contains the list of packages (here pandas
, numpy
and scikit-learn
) and particulars -- e.g. precedence order, import name, short name (e.g. pd
), etc.
See aix/sk.py
. It uses guide.tools.submodule_callables
, but that function doesn't catch everything (seems to fail on __all__
definitions.
"""sklearn (scikit-learn)"""
from contextlib import suppress
from guide.tools import submodule_callables
import sklearn
for _ in list(dict.fromkeys(submodule_callables(sklearn))):
if hasattr(_, '__name__'):
locals()[_.__name__] = _
for _subpackage_name in sklearn.__all__:
with suppress(ModuleNotFoundError):
_subpackage = __import__(f"sklearn.{_subpackage_name}")
for _ in submodule_callables(sklearn):
if hasattr(_, '__name__'):
locals()[_.__name__] = _
See: https://github.com/thorwhalen/guide/blob/master/guide/tools.py
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.