小编Jef*_*nic的帖子

R中的人脸识别

是否有用R统计语言编写的人脸识别算法?如果没有,请提供我可能开始将其他算法转换为R的指导.

r face-recognition

17
推荐指数
1
解决办法
2万
查看次数

在Python的英文维基百科中查找两篇文章之间的最短路径

问题:

找到英文维基百科中两篇文章之间的最短路径.如果存在文章C(i)并且文章A中存在导致文章C(1)的链接,则存在文章A和B之间的路径,在文章C(1)中链接导致文章C(2),... .在文章C(n)中是指向B条的链接

我正在使用Python.下载维基百科文章的URL:

  1. http://en.wikipedia.org/wiki/Nazwa_artykułu
  2. http://en.wikipedia.org/w/index.php?title?Nazwa_artykułu&printable=yes
  3. 维基百科API

我已经编辑了我的源代码,但是当我在代码中包含这些文章时它仍然不起作用任何人都可以告诉我在这里搞砸了什么?

这是我的代码:

import urllib2
import re
import xml.etree.ElementTree as ET

text = ET.fromstring(F_D.text.encode('UTF-8'))
text = ET.fromstring(P.text.encode('UTF-8'))
F_D=requests.get('http://en.wikipedia.org/wiki/Ant_colony_optimization_algorithms')
P=requests.get('http://en.wikipedia.org/wiki/Wikipedia:Unusual_articles')  
links = text.findall('.//*[@id=”mw-content-text”]/p/a')

links=E_D

E_D = graph_dict
E_D[start] = 0

for vertex in E_D:
    F_D[vertex] = E_D[vertex]
    if vertex == end: break

    for edge in graph[vertex]:
        path_distance = F_D[vertex] + graph[vertex][edge]
        if edge in F_D:
            if path_distance < F_D[edge]:
                #raise ValueError,
            elif edge not in E_D or path_distance < E_D[edge]:
                E_D[edge] = path_distance
                [edge] = …
Run Code Online (Sandbox Code Playgroud)

python algorithm dijkstra

11
推荐指数
1
解决办法
2832
查看次数

如何在oracle 11g(Windows 8)中启用分区?

我得到的错误为:

ORA-00439: feature not enabled: Partitioning while trying to create table with partition.
Run Code Online (Sandbox Code Playgroud)

我在这里有linux和unix系统的解决方案:

$ cd $ORACLE_HOME/rdbms/lib
$ make -f ins_rdbms.mk part_on
$ make -f ins_rdbms.mk ioracle
Run Code Online (Sandbox Code Playgroud)

任何人都可以为Windows提供解决方案吗?

注意:

select * from v$option where parameter='Partitioning';

PARAMETER
----------------------------------------------------------------
VALUE
----------------------------------------------------------------
Partitioning
FALSE
Run Code Online (Sandbox Code Playgroud)

谢谢

database windows oracle oracle11g

2
推荐指数
1
解决办法
1万
查看次数