Skip to content

Instantly share code, notes, and snippets.

View mindcont's full-sized avatar
🎯
Focusing

Apes mindcont

🎯
Focusing
View GitHub Profile
@mindcont
mindcont / Ubuntu 14.04 64bit + Caffe + CUDA 7.5 + Intel MKL 配置说明.md
Last active May 21, 2019 07:45
Ubuntu 14.04 64bit + Caffe + CUDA 7.5 + Intel MKL 配置说明

Ubuntu 14.04 64bit + Caffe + CUDA 7.5 + Intel MKL 配置说明

本步骤经笔者亲身实践,集百家所长,能实现Caffe在NVIDIA GPU下进行计算。

1. 安装开发所需的依赖包

安装开发所需要的一些基本包

sudo apt-get install build-essential  # basic requirement
sudo apt-get install vim cmake git    # tools
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler libatlas-base-dev #required by caffe
@mindcont
mindcont / tsp_ga.m
Last active April 4, 2023 16:17
旅行商问题(TSP)利用遗传算法解决-Matlab
function varargout = tsp_ga(xy,dmat,pop_size,num_iter,show_prog,show_res)
%tsp_ga旅行商问题(TSP)的遗传算法(GA)
% 查找(近)的最佳解决方案,通过设置一个遗传算法搜索到的旅行商
% 的最短路线(最少的推销员旅行到每个城市准确的一次,回到起点城市)
%
%概要:
% 1、一个单一的推销员旅行到每个城市和完成
% 他从一开始就开始返回城市的路线
% 2、每一个城市都有一次被推销员拜访过
%
@mindcont
mindcont / ga.py
Last active August 12, 2016 05:25
利用基因遗传算法中进行文本匹配
"""Genetic Algorithmn Implementation
"""
#引入随机函数
import random
#定义基因遗传算法顶层接口
class GeneticAlgorithm(object):
# 定义算法初始化
def __init__(self, genetics):