我现在使用Graphlab工作.安装这个程序后,我可以运行Collaborative filtering算法.现在我尝试在Python中使用Graphlab.我已经找到了这个出色的工具包.我的问题是,有没有人知道python实现中的Collaborative Filtering?我找不到这个工具,似乎我没有为Python实现...
先感谢您.
给定一个graphlab SFrame带有日期的列,例如:
+-------+------------+---------+-----------+
| Store | Date | Sales | Customers |
+-------+------------+---------+-----------+
| 1 | 2015-07-31 | 5263.0 | 555.0 |
| 2 | 2015-07-31 | 6064.0 | 625.0 |
| 3 | 2015-07-31 | 8314.0 | 821.0 |
| 4 | 2015-07-31 | 13995.0 | 1498.0 |
| 3 | 2015-07-20 | 4822.0 | 559.0 |
| 2 | 2015-07-10 | 5651.0 | 589.0 |
| 4 | 2015-07-11 | 15344.0 | 1414.0 |
| 5 …Run Code Online (Sandbox Code Playgroud) 我有一个sframe这样的:
+---------+------+-------------------------------+-----------+------------------+
| term_id | lang | term_str | term_type | reliability_code |
+---------+------+-------------------------------+-----------+------------------+
| IATE-14 | ro | Agen?ie de aprovizionare | fullForm | 3 |
| IATE-84 | bg | ??????????? ?? ??????? ???... | fullForm | 3 |
| IATE-84 | cs | p?íslušnost ?lenských stát... | fullForm | 3 |
| IATE-84 | da | medlemsstatskompetence | fullForm | 3 |
| IATE-84 | de | Zuständigkeit der Mitglied... | fullForm | 3 | …Run Code Online (Sandbox Code Playgroud) 当我尝试下载运行所需的依赖项时,我遇到了麻烦graphlab.我import graphlab得到以下内容:
ACTION REQUIRED: Dependencies libstdc++-6.dll and libgcc_s_seh-1.dll not found.
1. Ensure user account has write permission to C:\Users\DANISUAR\AppData\Local\Continuum\Miniconda2\envs\gl-env\lib\site-packages\graphlab
2. Run graphlab.get_dependencies() to download and install them.
3. Restart Python and import graphlab again.
By running the above function, you agree to the following licenses.
* libstdc++: https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html
* xz: http://git.tukaani.org/?p=xz.git;a=blob;f=COPYING
Run Code Online (Sandbox Code Playgroud)
所以我尝试运行graphlab.get_dependencies(),我收到以下错误:
In [2]: gl.get_dependencies()
By running this function, you agree to the following licenses.
* libstdc++: https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html
* xz: http://git.tukaani.org/?p=xz.git;a=blob;f=COPYING
Downloading xz.
Extracting …Run Code Online (Sandbox Code Playgroud) 为什么要创建"gl-env"?我也试过重新安装它......但没有任何帮助我.
CIO_TEST: <not set>
CONDA_DEFAULT_ENV: <not set>
CONDA_ENVS_PATH: <not set>
PATH: C:\Users\Himanshu\Anaconda2\Library\bin;C:\Users\Himanshu\Anaconda2;C:\Users\Himanshu\Anaconda2\Scripts;C:\Users\Himanshu\Anaconda2;C:\Users\Himanshu\Anaconda2\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\WINDOWS\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Users\Himanshu\AppData\Local\Programs\Python\Python35-32\Scripts\;C:\Users\Himanshu\AppData\Local\Programs\Python\Python35-32\;C:\Program Files\Java\jdk1.8.0_91\bin;C:\Users\Himanshu\AppData\Local\Microsoft\WindowsApps;
PYTHONHOME: <not set>
PYTHONPATH: <not set>
WARNING: could not import _license.show_info
# try:
# $ conda install -n root _license
===================
There was a problem creating the "gl-env" conda environment. Restart GraphLab Create Launcher.
Process completed with exit code -1
Run Code Online (Sandbox Code Playgroud) 如何对SFrame graphlab列中的所有值求和.我试着查看官方文档,它仅为SaArray(doc)提供,没有任何示例.
Graphlabs SFrame.show() 显示 SFrame 中每一列的综合视图,我想知道 Pandas 中是否有等价物?
df.describe() 并没有像 sf.show() 那样一目了然地提供细节级别。
在默认的 Graphlab 安装可执行文件失败后,我现在尝试使用命令提示符安装 Graphlab。可以在此处找到有关如何操作的分步教程。
运行线路时
conda create -n gl-env python=2.7 anaconda=4.0.0
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ....
Solving package specifications: .
Error: Dependencies missing in current win-64 channels:
- anaconda 4.0|4.0.0* -> scipy 0.17.0 np110py27_0 -> blas * mkl
- anaconda 4.0|4.0.0* -> numpy 1.10.4 py35_0 -> blas * mkl
- anaconda 4.0|4.0.0* -> scipy 0.17.0 np110py34_0 -> blas * mkl
- anaconda 4.0|4.0.0* -> scikit-learn 0.17.1 np110py27_0 -> blas * mkl
- …Run Code Online (Sandbox Code Playgroud) (*) 问题:我正在尝试在 MacOS 上为我的 coursera 课程安装 GraphLab Create。尝试创建新的 conda 环境时安装程序失败。
(*) 尝试的解决方案:
(1) 在当前版本的 conda 的错误消息中列出的已安装包:./conda install conda=4.0
(2) 更新了 conda 本身,当我运行 GrapLab 安装程序时,它降级到 4.0.8
(*) 错误信息:
Did not find a broken "gl-env" environment.
Creating conda environment "gl-env".
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata:
Solving package specifications:
Error: Dependencies missing in current osx-64 channels:
- anaconda 4.0|4.0.0* -> scipy 0.17.0 np110py27_0 -> blas * mkl
- anaconda 4.0|4.0.0* -> pytables 3.2.2 np110py27_1 -> numexpr 2.5* -> …Run Code Online (Sandbox Code Playgroud) 在使用 Python 2.7.x 或 3.7.x 创建新的 conda 环境时,
conda create -n gl-env python=2.7 anaconda=4.0.0出现以下错误
准备交易:完成验证交易:失败
CondaVerificationError: The package for bokeh located at C:\Users\kokul\Miniconda3\pkgs\bokeh-0.11.1-py27_0
appears to be corrupted. The path 'Scripts/bokeh-script.py-server'
specified in the package manifest cannot be found.
ClobberError: This transaction has incompatible packages due to a shared path.
packages: defaults::notebook-4.1.0-py27_2, defaults::qtconsole-4.2.0-py27_1
path: 'menu/jupyter.ico'
Run Code Online (Sandbox Code Playgroud)
如何解决?
我需要将SFrame列转换为列表.
输入:
`+---------+
| word |
+---------+
| love |
| loves |
| easy |
| perfect |
| great |
+---------+`
Run Code Online (Sandbox Code Playgroud)
输出:
['love', 'loves', 'easy', 'perfect', 'great']
Run Code Online (Sandbox Code Playgroud) gl.canvas.set_target('ipynb')在docker容器中的exeption之后运行抛出.
即使gl.canvas.set_target('ipynb', port=28892)28892是开放端口,错误也保持不变.
---------------------------------------------------------------------------
error Traceback (most recent call last)
<ipython-input-257-3f215a521352> in <module>()
----> 1 gl.canvas.set_target('ipynb')
/opt/conda/envs/gl-env/lib/python2.7/site-packages/graphlab/canvas/utils.pyc in set_target(target, port)
102 # and to preserve backwards compatibility/other use cases
103 # (running a notebook exported to .py, for instance)
--> 104 _active_target = targets[target]()
105
106 # track metrics on target
/opt/conda/envs/gl-env/lib/python2.7/site-packages/graphlab/canvas/target.pyc in __init__(self, port)
25 self.state = graphlab.canvas.state.State()
26 # TODO server is not necessary in static IPython/Jupyter Notebook
---> 27 self.server = graphlab.canvas.server.Server(self.state, port)
28 …Run Code Online (Sandbox Code Playgroud)